{"slug":"dev-kagurazaka-dev-v1-encode-8998d7","title":"Encodes a PaymentRequired, PaymentPayload or settlement response object as the b","host":"dev.kagurazaka.dev","method":"POST","resource":"https://dev.kagurazaka.dev/v1/encode","category":"other","description":"Encodes a PaymentRequired, PaymentPayload or settlement response object as the base64 value of its x402 header, for hand-written servers, clients and tests, and reports the same problems /v1/decode finds.","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":488,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"value":{"network":"eip155:8453","payer":"0x5672C104c5A7F931843DD0b4Cc12BA0B525C7BCB","success":true,"transaction":"0x5e1d3a1f7c8b9a0e2d4c6b8a0f1e3d5c7b9a1f3e5d7c9b1a3f5e7d9c1b3a5f7e","x402Version":2}},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"kind":{"description":"default auto","enum":["payment-required","payment-signature","payment-response","auto"],"type":"string"},"value":{"description":"the header's JSON object","type":"object"}},"required":["value"]},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"findings":{},"header":{},"header_name":{},"kind":{}},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":488,"error":null}],"description_full":"Encodes a PaymentRequired, PaymentPayload or settlement response object as the base64 value of its x402 header, for hand-written servers, clients and tests, and reports the same problems /v1/decode finds.","last_updated":"2026-10-25T07:58:06.976Z","schemes":["exact"]}