x402 (AI agents)
Will a usage payment settle? (paywall)
Usage pricing only. Before doing the work, pass the agent's PAYMENT-SIGNATURE header with the seller's wallet and the maximum price: the API checks that the upto payment will settle for up to that maximum - signature, balance, allowance - and moves nothing. Do the work after valid: true, then redeem with amount. Payments of other schemes answer valid: false with unsupported_scheme: they are redeemed at once, before anything is served.
post/x402/paywall/verify
Request
- Base URL: https://api.p2flux.com
- URL: https://api.p2flux.com/x402/paywall/verify
- Auth: none required
Request body
Example request
{
"recipient": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9",
"price": "0.05"
}Response
Valid, or why not
Changes
No recorded changes to this operation across all 1 revision of this API.