mayarin
POST
/x402/resources/{id}/verify

Checks the signature against the chain without broadcasting. The body's paymentRequirements is not what gets verified — Mayarin rebuilds the requirements from the resource and uses the carried copy only to identify which quoted option the payer chose. A facilitator that verified against the requirements handed to it would verify a payment against its own claims.

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/x402/resources/string/verify" \  -H "Content-Type: application/json" \  -d '{    "x402Version": 2,    "paymentPayload": {      "x402Version": 0,      "accepted": {        "scheme": "string",        "network": "string",        "amount": "string",        "asset": "string",        "payTo": "string",        "maxTimeoutSeconds": 0      },      "payload": {        "signature": "string",        "authorization": {          "from": "string",          "to": "string",          "value": "string",          "validAfter": "string",          "validBefore": "string",          "nonce": "string"        }      }    },    "paymentRequirements": {      "scheme": "string",      "network": "string",      "amount": "string",      "asset": "string",      "payTo": "string",      "maxTimeoutSeconds": 0    }  }'
{  "isValid": true,  "invalidReason": "insufficient_funds",  "payer": "string"}