v1

latestOpenAPI 3.0.32026-07-1320201.0 MB
Tron Staking

Freeze balance

Freezing is used to obtain resources, such as Bandwidth and Energy, which are required to perform transactions on the Tron network. Freezing balance is a requirement for delegating resources to other addresses. To ensure proper freezing of balance, you need to ensure that you have enough balance to freeze

post/api/v2/tron/freeze

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
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,
  "resource": "ENERGY",
  "password": "your_password",
  "privatekey": "708c419d1b9ae123047f70787a503b6ba51e048a27966e0220cc5feXXXXXXXXX"
}

Response

Freezed balance

statusinteger
okboolean
messagestring

Example response

{
  "status": 200,
  "ok": true,
  "message": "Balance frozen",
  "data": {
    "result": true,
    "txid": "9a0799630a4523b2caa5855b172ad75a5dfac9589a20441e7fe0622816c29023"
  }
}