resource_broadcast
Broadcast a signed TRON transaction with automatic energy optimization. If the target address lacks sufficient energy, MERX purchases the deficit at the best market price before broadcasting. One call: estimate, buy energy, wait for delegation, broadcast.
Requires MERX_API_KEY with the "broadcast" scope, and a pre-signed transaction. Returns txid on success, refunds on timeout.
NOTE: This endpoint is currently behind a feature flag and disabled by default in production. If you get a 503 MAINTENANCE error, use the manual flow instead: call ensure_resources to provision energy, then sign and broadcast the transaction with your own TronWeb client.
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": {
"signed_tx": "<signed_tx>",
"target_address": "<target_address>"
},
"name": "resource_broadcast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signed_tx | Yes | Hex-encoded signed TRON transaction | |
| target_address | Yes | TRON address that will execute the transaction (must match TX sender) |