Transfer
Last updated
Last updated
L3 transfer
Name | Type | Required | Description |
---|---|---|---|
For example:
For more details please refer to Golang example in SDK
type
String
yes
The value is "Transfer"
accountId
yes
Account ID of the from_account
fromSubAccountId
yes
Subaccount ID of the from_account
toSubAccountId
yes
Sub-account ID of the to_account
to
String
yes
Account address of the to_account, if the account does not exist, a new account will be automatically created on zkLink Layer3 for this address
token
yes
Token ID
amount
yes
Token amount, the value must be packable
fee
yes
Fee returned by estimateTransactionFee
API, the value should be packable
nonce
yes
Current nonce of the account |
signature
yes
the public key hash corresponding to the signature must be aligned with the from_account
ts
u32
yes
Timestamp of the API call, used as front-end request id to generate transaction hash