Withdraw Using PolkadotJS
You can only withdraw your "undelegated" (unstaked) assets. Make sure you have undelegated your assets before withdrawing. See the Unstake page for more information.
Withdrawing is the process of releasing assets from the multiasset delegation vault.
Similar to unstaking, it is composed of two steps:
- A withdrawal request is scheduled, which will be available for execution after its unstake period.
- After the unstake period, you can execute the withdrawal to actually release the assets.
Accessing the PolkadotJS Interface
- Open PolkadotJS Apps (opens in a new tab).
- Connect to the Tangle network by selecting the appropriate network from the dropdown list.
For convenience, here are the PolkadotJS direct links for Tangle Testnet and Mainnet:
- Tangle Testnet: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Ftestnet-rpc.tangle.tools#/explorer (opens in a new tab)
- Tangle Mainnet: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.tangle.tools#/explorer (opens in a new tab)
Schedule Withdraw
The first step to complete a withdraw is to schedule a withdrawal. This is done by calling the schedule_withdraw
function.
- Navigate to the Developer → Extrinsics tab on PolkadotJS.
- Under the multiAssetDelegation section, select scheduleWithdraw(...) and enter the asset ID along with the amount of assets to withdraw.
- Sign and submit the transaction. Make sure the account you are using has enough balance to cover the transaction fee.
Execute Withdraw
The second step to complete a withdraw is to execute the withdrawal. This is done by calling the execute_withdraw
function.
- Navigate to the Developer → Extrinsics tab on PolkadotJS.
- Under the multiAssetDelegation section, select executeWithdraw().
- Notice that there aren't any inputs for this function. This is because calling the function will execute all pending withdraw requests that have reached their maturity.
- Sign and submit the transaction. Make sure the account you are using has enough balance to cover the transaction fee.