Skip to main content
The withdrawal process in the Polkadot network using the Staking API can be done following these steps:
  1. Create unbonding request: unbond tokens within the Polkadot network that were previously bonded.
It takes 7 days (28 eras) to unbond on Kusama, 28 days (28 eras) on Polkadot, and 12 hours (2 eras) on Westend.
  1. Create withdrawal request: withdraw the unbonded tokens. Note that this request is available after the unbonding period.

Staking directly

1. Create unbonding request

  1. Send a POST request to /api/v1/polkadot/{network}/staking/unbond. Example request (for westend):
  • stashAccountAddress — main address which keeps tokens for bonding.
  • amount — amount of tokens to unbond. DOT is used for the main network, KSM for Kusama, and WND for Westend.
Example response:
  • unsignedTransaction in hex format. Sign the transaction and submit it to the blockchain to perform the called action.
  • stashAccountAddress — main stash account address which keeps tokens for bonding.
  • amount — amount of tokens for bond operations. DOT is used for the main network, KSM for Kusama, and WND for Westend.
  • createdAt — timestamp of the transaction in the ISO 8601 format.
  1. Sign and broadcast the unsignedTransaction to the Polkadot network.

2. Create withdrawal request

  1. Send a POST request to /api/v1/polkadot/{network}/staking/withdrawal-unbonded. Example request (for westend):
  • stashAccountAddress — main stash account address which keeps tokens for bonding.
Example response:
  • unsignedTransaction — unsigned transaction in hex format. Sign the transaction and submit it to the blockchain to perform the called action.
  • stashAccountAddress — main stash account address which keeps tokens for bonding.
  • createdAt — timestamp of the transaction in the ISO 8601 format.
  1. Sign and broadcast the unsignedTransaction to the Polkadot network.

Staking via a nomination pool

1. Create unbonding request

  1. Send a POST request to api/v1/polkadot/{network}/staking/pool/unbond. Example request (for westend):
  • stashAccountAddress — main stash account address which keeps tokens for bonding.
  • amount — amount of tokens to unbond. DOT is used for the main network, KSM for Kusama, and WND for Westend.
Example response:
  • unsignedTransaction — unsigned transaction in hex format. Sign the transaction and submit it to the blockchain to perform the called action.
  • amount — amount of tokens for bond operations. DOT is used for the main network, KSM for Kusama, and WND for Westend.
  • createdAt — timestamp of the transaction in the ISO 8601 format.
  1. Sign and broadcast the unsignedTransaction to the Polkadot network.

2. Create withdrawal request

  1. Send a POST request to api/v1/polkadot/{network}/staking/pool/withdraw-unbonded. Example request (for westend):
  • stashAccountAddress — main stash account address which keeps tokens for bonding.
  • poolId — ID of the nomination pool in which you participate.
Example response:
  • unsignedTransaction — unsigned transaction in hex format. Sign the transaction and submit it to the blockchain to perform the called action.
  • createdAt — timestamp of the transaction in the ISO 8601 format.
  1. Sign and broadcast the unsignedTransaction to the Polkadot network.