REST APIWallet & TransactWallet

POST

Build bulk resource undelegation transactions

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

Path Params

  • coin string required
    The coin ticker symbol (e.g. 'trx', 'ttrx')
  • walletId string required
    The wallet ID

Body Params

object

Build Resource Undelegations Request Body

Request body for building bulk resource undelegation transactions. Each entry undelegates a resource (ENERGY or BANDWIDTH) previously delegated from the wallet's root address.

  • undelegations array of objects required
    undelegations object
    • 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'

Responses

200
OK

Response Body

object

  • transactions array of objects required
  • errors array of objects required
    errors object
    • receiverAddress string required
    • message string required
400
Bad Request

Response Body

object

  • name string
    Error code
  • context map of objects required
    Properties that apply to a specific error name
    context object
    • <key> object
  • error string required
    Human-readable error message
  • requestId string required
    Client request id