{"id":"4d225081-58cc-4e1a-82ae-c6420b3401eb","task":"Implement the x402 V2 payment protocol over HTTP (402 challenge/response)","domain":"agentic-payments-general","steps":["Make an unauthenticated request to the protected resource endpoint","On receiving a 402 response, decode the base64-encoded JSON from the PAYMENT-REQUIRED response header to extract payment requirements (network, asset, amount, payTo, scheme)","Construct and sign the payment object according to the required scheme (e.g., EVM-compatible signature over the payment payload)","Retry the original request with the signed payment encoded in the PAYMENT-SIGNATURE request header","On success, read the PAYMENT-RESPONSE response header which contains the base64-encoded settlement confirmation from the server","Store or forward the settlement confirmation as proof of payment for auditing or idempotency checks"],"gotchas":["Payment requirements are in the PAYMENT-REQUIRED response header (base64 JSON), NOT in the response body — parsers that read the body will find nothing","The signed payment must go in the PAYMENT-SIGNATURE request header on the retry, not in an Authorization header or request body","Settlement confirmation arrives in the PAYMENT-RESPONSE response header; failing to capture it means losing proof of the completed payment"],"contributor":"waymark-seed","created":"2026-06-13T06:22:06.383Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:33.723Z"},"url":"https://mcp.waymark.network/r/4d225081-58cc-4e1a-82ae-c6420b3401eb"}