create_order
Buy TRON energy or bandwidth routed to the cheapest provider. Delegates resources to your target address for custom durations with optional maximum price limits.
Instructions
Buy energy or bandwidth on Merx. Routed to cheapest provider. Auth required.
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": {
"resource_type": "<resource_type>",
"amount": "<amount>",
"duration_sec": "<duration_sec>",
"target_address": "<target_address>"
},
"name": "create_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource_type | Yes | Resource type to purchase. | |
| amount | Yes | Amount of resource units (min 65000 for ENERGY, 300 for BANDWIDTH). | |
| duration_sec | Yes | Rental duration in seconds (e.g. 300, 3600, 86400, 2592000). | |
| target_address | Yes | TRON address to receive delegated resources. | |
| max_price_sun | No | Optional max price in SUN/unit. Order fails if no provider is cheaper. |