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).
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) |