x402

List the purchases a wallet paid for

Free. Everything the signing wallet bought from the pay-per-call endpoints in the last 30 days, newest first, for a buyer that lost its statusUrl. Called without a SIGN-IN-WITH-X header it answers 402 with a sign-in challenge and nothing to pay (accepts is empty; the challenge is the x402 sign-in-with-x extension, in the PAYMENT-REQUIRED header and the body). Sign it with the wallet that paid, a SIWE (EIP-4361) message on Base (eip155:8453, smart-contract wallets included) or a SIWS message on Solana, and send it back base64-encoded in the SIGN-IN-WITH-X header within five minutes; each challenge works once. agentcash signs it on its own; with @x402/fetch, register createSIWxClientExtension from @x402/extensions/sign-in-with-x. Each purchase comes with its file once finished, a fresh statusUrl, and a retryUrl when a render failed.

get/api/x402/purchases

Request

  • Base URL: https://www.trezalabs.com
  • URL: https://www.trezalabs.com/api/x402/purchases
  • Auth: API key in header SIGN-IN-WITH-X

Headers

SIGN-IN-WITH-Xstring

Base64 of the signed Sign-In-With-X payload: the challenge's fields plus address, chainId, type, and signature. Without it the call answers 402 with a challenge.

Response

The signing wallet's purchases.

walletstring

The address the proof was signed by.

chainIdstring

eip155:8453 or solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp.

messagestring

Changes

No recorded changes to this operation across all 1 revision of this API.