curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/undelegateresource \
--header 'Content-Type: application/json' \
--data '
{
"owner_address": "41608f8da72479edc7dd921e4c30bb7e7cddbe722e",
"receiver_address": "41e552f6487585c2b58bc2c9bb4492bc1f17132cd0",
"balance": 1000000,
"resource": "BANDWIDTH",
"visible": false
}
'{
"visible": true,
"txID": "<string>",
"raw_data": {
"contract": "<array>",
"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/undelegateresource \
--header 'Content-Type: application/json' \
--data '
{
"owner_address": "41608f8da72479edc7dd921e4c30bb7e7cddbe722e",
"receiver_address": "41e552f6487585c2b58bc2c9bb4492bc1f17132cd0",
"balance": 1000000,
"resource": "BANDWIDTH",
"visible": false
}
'{
"visible": true,
"txID": "<string>",
"raw_data": {
"contract": "<array>",
"ref_block_bytes": "<string>",
"ref_block_hash": "<string>",
"expiration": 123,
"timestamp": 123
},
"raw_data_hex": "<string>"
}delegateresource, making those resources available to your own account again.
owner_address — the address that originally delegated the resources (hex format)receiver_address — the address that was receiving the delegated resources (hex format)balance — the amount of TRX worth of resources to undelegate (in sun, where 1 TRX = 1,000,000 sun)resource — the resource type to undelegate (“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 objectraw_data_hex — hexadecimal representation of raw transaction datawallet/undelegateresource method is used for:
BANDWIDTH, ENERGY Was this page helpful?