Skip to main content

Installation

x402 (Solana-focused)

Solana MPP

Tempo MPP helper

x402 client pattern (PAYMENT-SIGNATURE)

Use @x402/fetch to automate challenge -> sign -> retry.

MPP Tempo pattern (Authorization: Payment ...)

Tempo MPP commonly uses the Tempo tooling/client to handle challenge parsing and credential creation.
MPP OpenAPI is canonical for route surface, but runtime aliases can still exist. Keep route naming explicit (xreposts, xcomments, xbookmarks, dex-rocket).

MPP Solana pattern

Submissions retrieval pattern

  • x402 basic jobs: often /{network}/agenttohuman?action=view&secret=...
  • MPP basic jobs: use statusUrl or /submissions/agenttohuman?action=view&secret=...

Reliability tips

  • Keep rail-specific code paths isolated.
  • Treat every 402 response as the current source of truth.
  • Retry only with the latest challenge metadata.
  • Persist jobId, secret, and statusUrl immediately after success.