radiant_estimate_tx_fee
Calculate transaction fee in satoshis from input/output counts and OP_RETURN sizes to budget before building a Radiant transaction. No network call required.
Instructions
Estimate transaction fee in satoshis given input/output counts. Pure arithmetic — no network call. Use this to budget before building a transaction. Supports OP_RETURN outputs (e.g., for token minting).
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": {
"input_count": "<input_count>",
"output_count": "<output_count>"
},
"name": "radiant_estimate_tx_fee"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_count | Yes | Number of P2PKH inputs | |
| fee_per_byte | No | Fee rate in photons/byte (default: 10000, the mainnet V2 min-relay floor). Lower values will be rejected by relaying nodes on mainnet. | |
| output_count | Yes | Number of P2PKH outputs (include change output) | |
| op_return_sizes | No | Sizes in bytes of any OP_RETURN data payloads (e.g., [80] for an 80-byte Glyph envelope) |