On-chain Operations
Delegate a TRON Resource
Delegate TRON energy or bandwidth from a vault to a destination party, such as a contact, and get back a pending transaction.
Request example
POST
/api/external/transactions/
Use resource delegation 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 delegates the resource.
TransferPartyData
required
Party that receives the delegated resource.
string
required
Asset symbol.
string
required
Blockchain identifier.
string
required
Decimal amount to delegate.
string
required
One of
TRON_ENERGY or TRON_BANDWIDTH.string
required
Must be
"DELEGATE_RESOURCE".string
Client reference.
string
Human-readable note.
The SDK accepts
chain and serializes it as blockChain. It injects category: "DELEGATE_RESOURCE".Response
Returns a Transaction. Itsstatus is the lifecycle source of truth.
Approve the transaction
New transactions returnstatus: "PENDING" and wait for approval. Get the approval message for the transaction id, sign it with your API user’s key, then submit the approval. See Approvals.
With the SDK, call approveChangeRequest({ entityId: transaction.id, action: "approve" }) after this call.
Request example