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

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.

Headers

NameTypeDescription

Authorization*

string

Bearer TOKEN

Request Body

NameTypeDescription

currencySymbol*

string

Must be "AAVE"

action*

string

Must be "stake"

address*

string

Your wallet address

amount*

string

Amount to stake

{
  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

NameTypeDescription

Authorization*

string

Bearer TOKEN

Request Body

NameTypeDescription

currencySymbol*

string

Must be "AAVE"

action*

string

Must be "withdraw-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.

Headers

NameTypeDescription

Authorization*

string

Bearer TOKEN

Request Body

NameTypeDescription

currencySymbol*

string

Must be "AAVE"

action*

string

Must be "unbond-stake"

address*

string

Your wallet address

{
  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. Unbonding period: 10 days + 2 days to withdraw stake after that

Headers

NameTypeDescription

Authorization*

string

Bearer TOKEN

Request Body

NameTypeDescription

currencySymbol*

string

Must be "AAVE"

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