PipRail icon

PipRail

Pay an x402 (HTTP 402) URL from a workflow - self-custody, EVM chains, no facilitator, no fee

Plan Payment

AI-generated

Summary

Plans a payment for a URL without moving funds, checking the payment rails offered by the endpoint against the configured wallet’s balances, gas, and recipient readiness.

Inputs

  • url (required) — URL to fetch. If it responds with HTTP 402, the operation analyzes the payment challenge; for an ungated URL, the plan is null.

Output shape

A single payment plan, or null when the URL is not payment-gated.

The plan reports whether payment is possible, the best payable rail, rail options with blockers and warnings, and a funding hint. It does not pay; use the selected rail with a payment-enabled fetch.

Links

Discussion