On-chain Operations
Stake a Resource
Stake an asset from a vault to obtain a chain resource, such as staking TRX on TRON for energy or bandwidth.
Request example
POST
/api/external/transactions/
Use staking for chain-level protocol actions. These transactions can have chain-specific data requirements and may require approval before broadcast.
Request body
TransferPartyData
required
Vault that stakes the asset.
string
required
Asset symbol.
string
required
Blockchain identifier.
string
required
Decimal amount to stake.
string
One of
TRON_ENERGY or TRON_BANDWIDTH.string
required
Must be
"STAKE".string
Client reference.
string
Human-readable note.
The SDK accepts
chain and serializes it as blockChain. It injects category: "STAKE".Response
Returns a Transaction. Itsstatus is the lifecycle source of truth.
Request example