Staking

Approve a token

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

This endpoint allows you to get transaction params for approve tokens.

Headers

Name
Type
Description

Authorization*

string

Bearer TOKEN

Request Body

Name
Type
Description

currencySymbol*

string

Must be "POL"

action*

string

Must be "approve"

address*

string

Your wallet address

{
  network: string;
  toAddress: string;
  amount: string;
  gasLimit: number;
  gasPrice: number;
  data: string;
}

Stake coins/tokens

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

This endpoint allows you to get transaction params for staking coins/tokens to Allnodes validator.

Headers

Name
Type
Description

Authorization*

string

Bearer TOKEN

Request Body

Name
Type
Description

currencySymbol*

string

Must be "POL"

action*

string

Must be "stake"

address*

string

Your wallet address

amount*

string

Amount to delegate

{
  network: string;
  toAddress: string;
  amount: string;
  gasLimit: number;
  gasPrice: number;
  data: string;
}

Withdraw rewards

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

This endpoint allows you to get transaction params for withdraw rewards earned.

Headers

Name
Type
Description

Authorization*

string

Bearer TOKEN

Request Body

Name
Type
Description

currencySymbol*

string

Must be "POL"

action*

string

Must be "withdraw-rewards"

address*

string

Your wallet address

{
  network: string;
  toAddress: string;
  amount: string;
  gasLimit: number;
  gasPrice: number;
  data: string;
}

Restake rewards

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

This endpoint allows you to get transaction params for restake rewards earned.

Headers

Name
Type
Description

Authorization*

string

Bearer TOKEN

Request Body

Name
Type
Description

currencySymbol*

string

Must be "POL"

action*

string

Must be "restake-rewards"

address*

string

Your wallet address

{
  network: string;
  toAddress: string;
  amount: string;
  gasLimit: number;
  gasPrice: number;
  data: string;
}

Unbond coins/tokens

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

This endpoint allows you to get transaction params for unbonding coins/tokens from Allnodes validator.

Headers

Name
Type
Description

Authorization*

string

Bearer TOKEN

Request Body

Name
Type
Description

currencySymbol*

string

Must be "POL"

action*

string

Must be "unbond-stake"

address*

string

Your wallet address

amount*

string

Amount to undelegate

{
  network: string;
  toAddress: string;
  amount: string;
  gasLimit: number;
  gasPrice: number;
  data: string;
}

Withdraw stake (after unbonding period finished)

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

This endpoint allows you to get transaction params for withdraw stake from Allnodes validator. Unbonding period: 80 checkpoints (1.5 - 2 days)

Headers

Name
Type
Description

Authorization*

string

Bearer TOKEN

Request Body

Name
Type
Description

currencySymbol*

string

Must be "POL"

action*

string

Must be "withdraw-stake"

address*

string

Your wallet address

amount*

string

Amount to withdraw

{
  network: string;
  toAddress: string;
  amount: string;
  gasLimit: number;
  gasPrice: number;
  data: string;
}

Last updated