The Graph Staking

Approve a token

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

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

Headers

NameTypeDescription

Authorization*

string

Bearer TOKEN

Request Body

NameTypeDescription

currencySymbol*

string

Must be "GRT"

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 indexer.

Headers

NameTypeDescription

Authorization*

string

Bearer TOKEN

Request Body

NameTypeDescription

currencySymbol*

string

Must be "GRT"

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;
}

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 indexer.

Headers

NameTypeDescription

Authorization*

string

Bearer TOKEN

Request Body

NameTypeDescription

currencySymbol*

string

Must be "GRT"

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 indexer. Unbonding period: 28 epochs (28 days)

Headers

NameTypeDescription

Authorization*

string

Bearer TOKEN

Request Body

NameTypeDescription

currencySymbol*

string

Must be "GRT"

action*

string

Must be "withdraw-stake"

address*

string

Your wallet address

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

Last updated