delegateBandwidth - TRON energy

Example code for the delegateBandwidth JSON RPC method. Сomplete guide on how to use delegateBandwidth JSON RPC in GetBlock Web3 documentation.

This delegates bandwidth to a TRON address. Same flow as Energy — instant result in most cases.

Body Parameter

Parameter

Type

Required

Description

target_address

string

Yes

TRON wallet address (starts with T, 34 characters)

volume

integer

Yes

Bandwidth amount: 1,000 — 200,000

duration

string

Yes

"1h" (only 1 hour supported for Bandwidth)

Request Sample

Request

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

Bandwidth only supports "1h" duration.

Response Sample

Last updated

Was this helpful?