API Reference X402 v#0.3.3

Copy Markdown View Source

Modules

Convenience API for working with x402 payment headers and wallet addresses.

Utilities for working with Elixir behaviours and callback implementations.

Encodes and decodes x402 payment identifier payloads.

Behaviour and adapter helpers for payment identifier idempotency caches.

ETS-backed cache adapter for payment identifier idempotency.

Encodes and decodes SIWX messages and SIGN-IN-WITH-X header values.

ETS-backed SIWX storage with TTL-based expiration.

Behaviour for storing SIWX access records.

Behaviour for SIWX signature verification.

Default EVM SIWX signature verifier using ex_secp256k1.

Stateful client for x402 facilitator verify and settle operations.

Structured error returned by facilitator verify/settle operations.

HTTP transport for facilitator verify and settle requests.

Behaviour for lifecycle hooks around facilitator verify and settle operations.

Context passed between x402 lifecycle hook callbacks.

Default no-op implementation of X402.Hooks.

Encodes and decodes the x402 PAYMENT-REQUIRED header value.

Encodes and decodes the x402 PAYMENT-RESPONSE header value.

Decodes and validates x402 PAYMENT-SIGNATURE header values.

Plug middleware that gates configured routes behind x402 payment verification.

Telemetry event definitions and emission helpers for x402 operations.

Shared utility functions for the X402 library.

Wallet address validation utilities for x402.