Build bulk resource undelegation transactions

post/api/v2/{coin}/wallet/{walletId}/undelegateResources/build

Builds one undelegation transaction per entry, collecting per-entry errors rather than aborting the batch on first failure.

Path Parameters

  • coinstringRequired
    The coin ticker symbol (e.g. 'trx', 'ttrx')
    Example: btc
  • walletIdstringRequired
    The wallet ID
    Example: 59cd72485007a239fb00282ed480da1f
    Pattern: ^[0-9a-f]{32}$

Request Body

undelegations array[object] required
Array of resource undelegation entries, each specifying a receiver address, amount, and resource type
receiverAddress string required
The address receiving the delegated resource
amount string required
Amount of resource to delegate (in sun for TRX)
resource string required
Resource type to delegate, e.g. 'ENERGY' or 'BANDWIDTH'

200 Response

transactions array required
errors array[object] required
receiverAddress string required
message string required

400 Response

name string
Error code
context object required
Properties that apply to a specific error name
error string required
Human-readable error message
requestId string required
Client request id