Tron Staking

Instructions: https://help.allnodes.com/en/articles/8610811-tron-staking-api

Get votes

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

This endpoint allows you to get a list of all your votes for Tron validators.

Headers

NameTypeDescription

Authorization*

string

Bearer TOKEN

Request Body

NameTypeDescription

currencySymbol*

string

Must be "TRX"

action*

string

Must be "votes"

address*

string

Your wallet address

[
  {
    voteAddress: string;
    voteCount: number;
  }
]

Freeze coins

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

This endpoint allows you to get a serialized unsigned transaction to freeze coins before staking.

Headers

NameTypeDescription

Authorization*

string

Bearer TOKEN

Request Body

NameTypeDescription

currencySymbol*

string

Must be "TRX"

action*

string

Must be "freeze"

address*

string

Your wallet address

amount*

number

Amount to freeze (integer)

{
  visible: boolean;
  txID: string;
  raw_data_hex: string;
  raw_data: object;
}

Delegate coins

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

This endpoint allows you to get a serialized unsigned transaction for delegating staked coins to Allnodes validator.

Headers

NameTypeDescription

Authorization*

string

Bearer TOKEN

Request Body

NameTypeDescription

currencySymbol*

string

Must be "TRX"

action*

string

Must be "delegate"

address*

string

Your wallet address

amount*

number

Amount to delegate (integer)

{
  visible: boolean;
  txID: string;
  raw_data_hex: string;
  raw_data: object;
}

Undelegate coins

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

This endpoint allows you to get a serialized unsigned transaction for undelegating staked coins from Allnodes validator.

Headers

NameTypeDescription

Authorization*

string

Bearer TOKEN

Request Body

NameTypeDescription

currencySymbol*

string

Must be "TRX"

action*

string

Must be "undelegate"

address*

string

Your wallet address

amount*

number

Amount to undelegate (integer)

{
  visible: boolean;
  txID: string;
  raw_data_hex: string;
  raw_data: object;
}

Unfreeze coins

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

This endpoint allows you to get a serialized unsigned transaction to unfreeze coins after undelegating.

Headers

NameTypeDescription

Authorization*

string

Bearer TOKEN

Request Body

NameTypeDescription

currencySymbol*

string

Must be "TRX"

action*

string

Must be "unfreeze"

address*

string

Your wallet address

amount*

number

Amount to unfreeze (integer)

{
  visible: boolean;
  txID: string;
  raw_data_hex: string;
  raw_data: object;
}

Claim rewards

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

This endpoint allows you to get a serialized unsigned transaction for claiming rewards.

Headers

NameTypeDescription

Authorization*

string

Bearer TOKEN

Request Body

NameTypeDescription

currencySymbol*

string

Must be "TRX"

action*

string

Must be "claim"

address*

string

Your wallet address

amount*

number

Amount to claim (integer)

{
  visible: boolean;
  txID: string;
  raw_data_hex: string;
  raw_data: object;
}

Last updated