10. Asset Withdrawals
Last updated
Was this helpful?
Last updated
Was this helpful?
Users are able to withdraw assets from L2 to L1 in Zecrey.
You need to initialize the SDK in order to use it.
Parameters needed:
Parameter
Parameter usage and meaning
Required vs Optional
accountName
The account name used to initialize the client
✅
seed
The user's L2 seed used to initialize the client
✅
nftId
The corresponding ID of the NFT to be withdrawn
✅
📚SDK REFERENCE
Example
Withdraw NFT with NftId
= 6
Initialize the client
Withdraw the NFT
Example result
Parameters needed:
Parameter
Parameter usage and meaning
Requirement
accountName
The account name used to initialize the client
✅
seed
The user's L2 seed used to initialize the client
✅
nftId
ID of the NFT to be withdrawn
✅
tol1Address
Specify an L1 address to withdraw
✅
Example
Withdraw 100000 BNB to L1
Initialize client
Withdraw 100000 BNB
Example result
Query current user asset through