Request
Method:POSTURL:
https://api.finrock.io/dav/v1/unstake
Body Parameters
string
default:"TRX"
required
The blockchain ticker. Must be
TRX.string
required
The Tron address from which you want to unstake TRX. This must be the address where you previously staked via the Stake TRX endpoint.
string
default:"ENERGY"
required
The resource type associated with the TRX you want to unstake. Must match what was staked:
ENERGY— unstake TRX that was staked for ENERGYBANDWIDTH— unstake TRX that was staked for BANDWIDTH
number
default:"100"
required
The amount of TRX to unstake, expressed as a decimal number. Must not exceed the amount currently staked for the specified resource on this address.
Headers
string
required
Your Finrock API key.
string
required
Your JWT bearer token. Format:
Token {JWT}Example Request
Response
A200 response confirms the unstaking has been initiated and the TRX is now in the cooldown period. A 400 response indicates that the unstaking cannot proceed, typically because the amount exceeds what is staked or the address is invalid.
object
Confirms the unstaking request has been submitted. Includes details of the cooldown period after which the TRX can be released.
object
Returned when the address is invalid, the resource type does not match what is staked, or the unstake amount exceeds the staked balance.