address-activate - TRON energy
Example code for the addressActivate JSON RPC method. Сomplete guide on how to use addressActivate JSON RPC in GetBlock Web3 documentation.
Body Parameter
Request Sample
curl -X POST https://services.getblock.io/v1/tron-energy/address-activate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 6f9c2a1e-3b7d-4c08-9f21-2e5a7c0b1d44" \
-d '{
"target_address": "TUo8pycbvje9w2XYsNnnzw67bpPs4GLFyD"
}'import axios from 'axios';
const data = JSON.stringify({
"target_address": "TUo8pycbvje9w2XYsNnnzw67bpPs4GLFyD"
}
);
const config = {
method: 'post',
url: 'https://services.getblock.io/v1/tron-energy/address-activate',
headers: {
'Content-Type': 'application/json',
'Authorization: Bearer YOUR_API_KEY'
'Idempotency-Key: 6f9c2a1e-3b7d-4c08-9f21-2e5a7c0b1d44' \
},
data: data
};
axios(config)
.then(response => console.log(JSON.stringify(response.data)))
.catch(error => console.log(error));Response Sample
{
"data": {
"id": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
"address_to": "TUo8pycbvje...zw67bpPs4GLFyD",
"cost": 1700000,
"created_at": "2026-06-18T10:42:00Z"
}
}Response Sample Definition
Field
Type
Charged
Description
Idempotency
Scenario
Behavior
Last updated
Was this helpful?