Request
Method:POSTURL:
https://api.finrock.io/dav/v1/stake
Body Parameters
string
default:"TRX"
required
The blockchain ticker. Must be
TRX for Tron staking.string
required
The Tron address that will receive the ENERGY or BANDWIDTH resources from this staking operation. This should be the wallet address you want to benefit from reduced fees.
string
default:"ENERGY"
required
The type of Tron resource to obtain by staking. Must be one of:
ENERGY— used for TRC-20 token transfers and smart contract interactionsBANDWIDTH— used for basic TRX transfers
number
default:"100"
required
The amount of TRX to stake, expressed as a decimal number. For example,
100 stakes 100 TRX.Headers
string
required
Your Finrock API key.
string
required
Your JWT bearer token. Format:
Token {JWT}Example Request
Response
A200 response confirms that the staking transaction has been submitted and the resources are being allocated to the specified address. A 400 response indicates an invalid parameter or insufficient TRX balance.
object
Confirms the staking operation was submitted, including transaction details and the resource allocation.
object
Returned when required parameters are missing, the address is invalid, or the TRX balance is insufficient to cover the staking amount.
Staked TRX is locked and cannot be transferred until you initiate an unstaking operation. See the Unstake TRX endpoint to begin the withdrawal process.