Transfer
L3 transfer
Name
Type
Required
Description
type
String
yes
The value is "Transfer"
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
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
For example:
{
"type": "Transfer",
"accountId": 8,
"fromSubAccountId": 3,
"toSubAccountId": 3,
"to": "0xbfDa941Bd2a0eddB57b10f8E8d3486A738B92cCC",
"token": 3,
"amount": "998000000000000000",
"fee": "3000000000000000",
"ts": 1646101085,
"nonce": 1,
"signature": {
"pubKey": "0x0dd4f603531bd78bbecd005d9e7cc62a794dcfadceffe03e269fbb6b72e9c724",
"signature": "892c622afac908201df54a3cfdecf8eba46d5411bdc29365f5536f024c195f2893d6313a6371fe1659830e2560c1eaedbafcc835837593d017cd557074f0bb03"
}
}sign Transfer
For more details please refer to Golang example in SDK
Last updated
Was this helpful?