Buy bandwidth
rent_bandwidthBuy bandwidth for an address and charge the TRX balance. Does not activate the address. Spends money: confirm with the user first. Needs an API key at the rent or full level.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "<address>",
"volume": "<volume>",
"duration": "<duration>"
},
"name": "rent_bandwidth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| volume | Yes | Bandwidth points, 1 to 100000. A USDT transfer needs about 345. | |
| address | Yes | Address that receives the bandwidth. | |
| duration | Yes | Bandwidth rental length. | |
| exact_volume | No | Optional, default false. True excludes suppliers that do not sell exactly this amount. | |
| exact_duration | No | Optional, default false. True excludes suppliers that do not sell exactly this duration; false allows the shortest longer one. | |
| idempotency_key | No | Recommended. A new random value for each purchase. Reuse it only to retry the same purchase after a lost response: the original result comes back and nothing is charged twice. |