estimate_payment_cost
Estimate the SOL cost of transacting a payment request, including fees and rent-exemption, to preview costs before sending.
Instructions
Estimate the SOL cost of submitting the transaction that would pay a given payment_request. Useful before send_payment on a USDC 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payment_request | Yes | JSON-serialized payment_request blob (as received from a provider job-feedback event). |