estimate_payment_cost
Estimate the SOL cost to pay a payment_request, covering base fee, priority fee, and first-time ATA rent deposit. Read-only check before sending payment.
Instructions
Estimate the SOL cost of submitting the transaction that would pay a given payment_request. Useful before send_payment on an SPL (USDC/LSM) invoice: the payer still spends SOL for the base fee, priority fee, and (first-time recipients only) ATA rent-exemption deposit. Read-only: does not send anything on-chain.
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": {
"payment_request": "<payment_request>"
},
"name": "estimate_payment_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payment_request | Yes | JSON-serialized payment_request blob (as received from a provider job-feedback event). |