POST
Build bulk resource delegation transactions
Builds one delegation transaction per entry, collecting per-entry errors rather than aborting the batch on first failure.
Path Params
-
coinstring requiredThe coin ticker symbol (e.g. 'trx', 'ttrx') -
walletIdstring requiredThe wallet ID
Body Params
object
Build Resource Delegations Request Body
Request body for building bulk resource delegation transactions. Each entry delegates a resource (ENERGY or BANDWIDTH) from the wallet's root address to a receiver address.
-
delegationsarray of objects requireddelegations object
-
receiverAddressstring requiredThe address receiving the delegated resource -
amountstring requiredAmount of resource to delegate (in sun for TRX) -
resourcestring requiredResource type to delegate, e.g. 'ENERGY' or 'BANDWIDTH' -
sequenceIdstringClient-generated idempotency key for the transaction request created for this delegation (TSS wallets only). When provided and another non-canceled latest transaction request on the same wallet already carries this sequenceId, creation fails with a DuplicateSequenceIdError instead of creating a duplicate. Omit for fire-and-forget builds.
-
-
previewbooleanWhen true, build each delegation transaction without creating a transaction request. Response entries carry NO txRequestId in this mode — the build is never persisted, so there is no referenceable request. Defaults to false, which creates a transaction request per entry (TSS wallets). Non-TSS builds are pure either way.
Responses
200
OK
Response Body
object
-
transactionsarray of objects required -
errorsarray of objects requirederrors object
-
receiverAddressstring required -
messagestring required
-
400
Bad Request
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id