Withdraw
Withdraw encode
Name | Rule |
---|---|
type | 1 byte with value |
toChainId | 1 byte |
accountId | 4 bytes |
subAccountId | 1 byte |
to | 32 bytes, extend to 32 bytes with |
l2SourceToken | 2 bytes |
l1TargetToken | 2 bytes |
amount | 16 bytes, refer to the |
fee | 2 bytes, refer to the |
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