Allnodes Docs
  • Allnodes API
  • Endpoints
    • Validator
    • Staking
    • Full Node
  • 1INCH NETWORK (1INCH)
    • Staking
  • AAVE (AAVE)
    • Staking
  • AVALANCHE (AVAX)
    • Validator
  • Dash (DASH)
    • Masternode
  • ETHEREUM (ETH)
    • Validator
    • Staking
  • Firo (FIRO)
    • Masternode
  • KUSAMA (KSM)
    • Kusama Staking
  • NEAR Protocol (NEAR)
    • NEAR Protocol Staking
  • PAC PROTOCOL (PAC)
    • Masternode
  • POLKADOT (DOT)
    • Polkadot Staking
  • POLYGON (POL)
    • Staking
  • SHIBA INU (SHIB)
    • Shiba Inu Staking
  • SOLANA (SOL)
    • Solana Staking
  • Syscoin (SYS)
    • Masternode
  • THE GRAPH (GRT)
    • The Graph Staking
  • TRON (TRX)
    • Tron Staking
Powered by GitBook
On this page
  • Bond coins (initial)
  • Bond extra coins
  • Nominate validators
  • Unbond coins
  • Withdraw stake (after unbonding period finished)

Was this helpful?

  1. POLKADOT (DOT)

Polkadot Staking

PreviousMasternodeNextStaking

Last updated 2 years ago

Was this helpful?

Instructions:

Bond coins (initial)

POST https://www.allnodes.com/api/v1/staking

This endpoint allows you to get serialized unsigned transaction for initial bond coins.

Headers

Name
Type
Description

Authorization*

string

Bearer TOKEN

Request Body

Name
Type
Description

currencySymbol*

string

Must be "DOT"

action*

string

Must be "initial-bond"

address*

string

Your wallet address (will be used as stash account)

controller*

string

Your wallet address (will be used as controller account)

payee*

string

"stash-reinvest" | "stash-save" | "controller"

amount*

string

Amount to stake (in DOT)

{
  serializedTransaction: string;
}
{
  "error": "INVALID_ADDRESS"
}

Bond extra coins

POST https://www.allnodes.com/api/v1/staking

This endpoint allows you to get serialized unsigned transaction for bonding extra coins.

Headers

Name
Type
Description

Authorization*

string

Bearer TOKEN

Request Body

Name
Type
Description

currencySymbol*

string

Must be "DOT"

action*

string

Must be "bond-extra"

address*

string

Your wallet address (stash account)

amount*

string

Amount to bond (in DOT)

{
  serializedTransaction: string;
}
{
  "error": "INVALID_AMOUNT"
}

Nominate validators

POST https://www.allnodes.com/api/v1/staking

This endpoint allows you to get serialized unsigned transaction for nominate validators.

Headers

Name
Type
Description

Authorization*

string

Bearer TOKEN

Request Body

Name
Type
Description

currencySymbol*

string

Must be "DOT"

action*

string

Must be "nominate"

address*

string

Your wallet address (stash account)

validators*

string[]

Addresses of validators to nominate (up to 16 unique addresses)

{
  serializedTransaction: string;
}
{
  "error": "VALIDATORS_UNIQ_ERROR"
}

Unbond coins

POST https://www.allnodes.com/api/v1/staking

This endpoint allows you to get serialized unsigned transaction for unbonding coins.

Headers

Name
Type
Description

Authorization*

string

Bearer TOKEN

Request Body

Name
Type
Description

currencySymbol*

string

Must be "DOT"

action*

string

Must be "unbond"

address*

string

Your wallet address (stash account)

amount*

string

Amount to unbond (in DOT)

{
  serializedTransaction: string;
}
{
  "error": "NOT_ENOUGH_AMOUNT"
}

Withdraw stake (after unbonding period finished)

POST https://www.allnodes.com/api/v1/staking

This endpoint allows you to get serialized unsigned transaction for withdraw stake. Unbonding period: 28 days

Headers

Name
Type
Description

Authorization*

string

Bearer TOKEN

Request Body

Name
Type
Description

currencySymbol*

string

Must be "DOT"

action*

string

Must be "withdraw-stake"

address*

string

Your wallet address (stash account)

{
  serializedTransaction: string;
}
{
  "error": "INVALID_ERA_FOR_WITHDRAW"
}
https://help.allnodes.com/en/articles/6730085-polkadot-staking-api