11. Full Exit
In order to ensure the security of users' assets, users are given the right to take out their assets at any time. They can return the assets to their accounts by sending a transaction to L1.
Initialize SDK
You need to initialize the SDK in order to use it.
NFT Full Exit
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
✅
privateKey
Since this transaction involves L1, the private key of user's L1 account is needed to sign the transaction
✅
nftIndex
The unique ID of NFT in L1
✅
📚SDK REFERENCE
Example
FullExit the NFT with
nftIndex
= 130Initialize client
FullExit the NFT with
nftIndex
= 130
Example Result
FT Full Exit
Parameters needed
BNB、LEG、REY's token addresses are needed and the details can be obtained through GetAssetsList
Parameter
Parameter usage and meaning
Required or not
accountName
The account name used to initialize the client
✅
seed
The user's L2 seed used to initialize the client
✅
privateKey
Since this transaction involves L1, the private key of user's L1 account is needed to sign the transaction
✅
asset
asset Token address
✅
📚SDK REFERENCE
Example
Deposit 10000 BNB to L2
Initialize client
FullExit 100000 BNB
Example Result
Last updated