v1

latestOpenAPI 3.0.32026-07-1320201.0 MB
Tron Staking

Undelegate ressources

Undelegation is used to release delegated resources, such as Bandwidth and Energy, which are required to perform transactions on the Tron network. Undelegating balance is a requirement for voting for Super Representatives and obtaining rewards. To ensure proper delegation of balance, you need to ensure that you already delegated ressources to this address

post/api/v2/tron/undelegate

Headers

X-Network'testnet' | 'mainnet'

Specify "testnet" for test network or leave empty for main network. Defaults to "mainnet" if not provided.

Authorizationstring required

Bearer token for authorization. Required for authenticated endpoints.

Content-Type'application/json' | 'application/x-www-form-urlencoded' | 'multipart/form-data' required

The MIME type of the request body.

Request body

addressstring required

Must match the regex /^T[1-9A-HJ-NP-Za-km-z]{33}$/.

amountnumber required
receiverstring required
resource'BANDWIDTH' | 'ENERGY' required
passwordstring

The password for the address. This field is required when <code>privatekey</code> is not present.

privatekeystring

The private key of the sender.

Example request

{
  "address": "TVQzpd28yXB1ETsf5NMZMHjvvAE3LXEDAK",
  "amount": 100,
  "receiver": "TVQzpd28yXB1ETsf5NMZMHjvvAE3LXEDAK",
  "resource": "ENERGY",
  "password": "your_password",
  "privatekey": "708c419d1b9ae123047f70787a503b6ba51e048a27966e0220cc5feXXXXXXXXX"
}

Response

Undelegated

statusinteger
okboolean
messagestring

Example response

{
  "status": 200,
  "ok": true,
  "message": "Undelegated",
  "data": {
    "result": true,
    "txid": "5b95fc968984975a4dac5cf5a82b9c265ffae1fc1d227a7c2be5ab4ff74d3ecb"
  }
}