Estimate Cost
AI-generatedSummary
Estimates the network fee for requesting a URL, without making a payment. If the URL returns an HTTP 402 payment challenge, the result includes the payment quote and a best-effort estimate of gas cost in the network’s native coin; otherwise, the operation returns null.
Inputs
- URL (required) — URL to fetch. If it responds with a payment challenge, PipRail quotes the requested payment and estimates the network fee.
Output shape
A single item containing the quote and cost estimate, or null when the URL is not payment-gated.
The estimate is best-effort: it uses live RPC data where available and typical-cost heuristics otherwise. It does not move funds; the estimated fee is in the network’s native coin, separate from the payment token.