curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/freezebalancev2 \
--header 'Content-Type: application/json' \
--data '{
"owner_address": "41608f8da72479edc7dd921e4c30bb7e7cddbe722e",
"frozen_balance": 1000000,
"resource": "BANDWIDTH",
"visible": false
}'
{
"visible": true,
"txID": "<string>",
"raw_data": {
"contract": [
"<any>"
],
"ref_block_bytes": "<string>",
"ref_block_hash": "<string>",
"expiration": 123,
"timestamp": 123
},
"raw_data_hex": "<string>"
}
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/freezebalancev2 \
--header 'Content-Type: application/json' \
--data '{
"owner_address": "41608f8da72479edc7dd921e4c30bb7e7cddbe722e",
"frozen_balance": 1000000,
"resource": "BANDWIDTH",
"visible": false
}'
{
"visible": true,
"txID": "<string>",
"raw_data": {
"contract": [
"<any>"
],
"ref_block_bytes": "<string>",
"ref_block_hash": "<string>",
"expiration": 123,
"timestamp": 123
},
"raw_data_hex": "<string>"
}
owner_address
— the address that owns the TRX to freeze (hex format)frozen_balance
— the amount of TRX to freeze (in sun, where 1 TRX = 1,000,000 sun)resource
— the resource type to obtain (“BANDWIDTH” or “ENERGY”)visible
— optional boolean to specify address format (default: false for hex format)visible
— boolean indicating address format usedtxID
— transaction ID hashraw_data
— raw transaction data object containing freeze contract detailsraw_data_hex
— hexadecimal representation of raw transaction datawallet/freezebalancev2
method is used for:
Freeze balance v2 transaction
The response is of type object
.
Was this page helpful?