Buy Energy
buy_energyPurchase TRON Energy for a target address. Creates a MARKET order that will be filled by available pools. Deducts cost from your balance.
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": {
"targetAddress": "<targetAddress>",
"txCount": "<txCount>"
},
"name": "buy_energy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| txType | No | Transaction type (default: trc20_transfer) | |
| txCount | Yes | Number of transactions you need energy for | |
| resourceType | No | Resource type (default: ENERGY) | |
| targetAddress | Yes | TRON address to delegate energy to (T-address format) | |
| durationMinutes | No | Duration in minutes. Allowed: 2, 5, 10, 15, 30, 60, 180, 360, 1440, 10080, 43200. Default: 60. |