Withdraw
Withdraw encode
Name
Rule
type
1 byte with value 0x03
toChainId
1 byte
accountId
4 bytes
subAccountId
1 byte
to
32 bytes, extend to 32 bytes with 0x00
prefix
l2SourceToken
2 bytes
l1TargetToken
2 bytes
amount
fee
nonce
4 bytes
withdrawToL1
1 byte
withdrawFeeRatio
2 bytes
callData
No limit, be used to send to layer1 to call a smart contract
ts
4 bytes
72 bytes in total.
Example
Last updated