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
  • Stake coins
  • Unbond coins
  • Withdraw stake (after unbonding period finished)

Was this helpful?

  1. NEAR Protocol (NEAR)

NEAR Protocol Staking

PreviousKusama StakingNextMasternode

Last updated 3 months ago

Was this helpful?

Instructions:

Stake coins

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

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

Headers

Name
Type
Description

Authorization*

string

Bearer TOKEN

Request Body

Name
Type
Description

currencySymbol*

string

Must be "NEAR"

action*

string

Must be "stake"

accountID*

string

You wallet ID (Example: "allnodes.near")

accountPublicKey*

string

Your wallet public key (Example: "ed25519:1sTWdHCPJL3xkzxdg4ZkQm4d8A4TakDePXbpaGh4dAVE")

amount*

string

Amount to stake (in NEAR)

validatorID*

string

Validator ID to delegate (Example: "allnodes.poolv1.near")

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

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 "NEAR"

action*

string

Must be "unbond"

accountID*

string

You wallet ID (Example: "allnodes.near")

accountPublicKey*

string

Your wallet public key (Example: "ed25519:1sTWdHCPJL3xkzxdg4ZkQm4d8A4TakDePXbpaGh4dAVE")

validatorID*

string

Validator ID to unbond from (Example: "allnodes.poolv1.near")

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

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: 2 days

Headers

Name
Type
Description

Authorization*

string

Bearer TOKEN

Request Body

Name
Type
Description

currencySymbol*

string

Must be "NEAR"

action*

string

Must be "withdraw-stake"

accountID*

string

You wallet ID (Example: "allnodes.near")

accountPublicKey*

string

Your wallet public key (Example: "ed25519:1sTWdHCPJL3xkzxdg4ZkQm4d8A4TakDePXbpaGh4dAVE")

validatorID*

string

Validator ID to withdraw stake from (Example: "allnodes.poolv1.near")

{
  serializedTransaction: string;
}
{
  "error": "INVALID_PUBLIC_KEY"
}
https://help.allnodes.com/en/articles/6759442-near-protocol-staking-api