Calculate Minimum Fee
cardano_transaction_calculate_min_feeCalculate the minimum fee in lovelace for a Cardano transaction using the transaction body file and protocol parameters, with an optional witness count.
Instructions
Calculate the minimum fee for a transaction.
Args:
tx_body_file (string): Path to the transaction body file
witness_count (number, optional): Number of witnesses (default: 1)
protocol_params_file (string): Path to protocol parameters JSON file
Returns: The minimum fee in lovelace.
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": {
"tx_body_file": "<tx_body_file>",
"protocol_params_file": "<protocol_params_file>"
},
"name": "cardano_transaction_calculate_min_fee"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx_body_file | Yes | Path to the transaction body file | |
| witness_count | No | Number of witnesses | |
| protocol_params_file | Yes | Path to protocol parameters JSON file |