githubEdit

API Reference

This contain all the endpoints, pricing and error codes to access TRON energy

The GetBlock TRON Energy API lets you programmatically delegate Energy and Bandwidth to any TRON address. Automate fee optimization for exchanges, payment services, and dApps.

Base URL

https://api.getblock.io/tron-energy

Authentication

All requests require an API key in the header:

Authorization: Bearer YOUR_API_KEY

Quick Example

  • Generate keys in your dashboard under Delegate → API.

curl -X POST https://api.getblock.io/tron-energy/delegateEnergy \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"target_address": "TUo8...", "volume": 65000, "duration": "1d"}'

Endpoints

Endpoint
Method
Description

/delegateEnergy

POST

Delegate Energy (30K–5M) for 1h–14d

/delegateBandwidth

POST

Delegate Bandwidth (1K–200K) for 1h

/addressActivate

POST

Activate a new TRON address

/orders/{order_id}

GET

Check order status

/api/price-estimate

POST

Get real-time price quote

Rate Limits

  • 30 requests/minute per API key

  • Up to 5 API keys per account

Error Codes

HTTP Status

Meaning

400

Invalid request parameters (bad address, volume, duration, or resource type)

401

Missing or invalid API key

402

Insufficient balance — top up your account

429

Rate limit exceeded (30 requests/min per API key)

502

Provider error — the upstream delegation service is temporarily unavailable

Pricing

You pay in USD. The price is calculated based on the current TRX/USD rate. You are charged only after the delegation is confirmed — if the order fails, nothing is deducted.

For example, 32,000 Energy for 24h costs approximately $1.60–$1.80, depending on the current TRX rate.

Last updated

Was this helpful?