rift_get_transaction_fee
Calculates the on-chain gas/network fee for sending crypto, helping you estimate transaction costs before initiating a transfer.
Instructions
Calculate the gas/network fee for sending crypto (rift_send_crypto). This is the on-chain transaction fee, NOT the offramp/exchange fee. For offramp fees, use rift_preview_exchange_rate with amount and type='offramp'. Requires login.
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": {
"recipient": "<recipient>",
"amount": "<amount>",
"chain": "<chain>",
"token": "<token>"
},
"name": "rift_get_transaction_fee"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Chain | |
| token | Yes | Token | |
| amount | Yes | Amount to send | |
| recipient | Yes | Recipient address |