コンテンツにスキップ

X402PaymentRequirements

このコンテンツはまだ日本語訳がありません。

Defined in: src/x402/types.ts:128

One acceptable payment method, as advertised by the resource server.

Field encoding follows the wire format exactly:

  • amount is a decimal string of atomic token units (uint256-safe).
  • asset and payTo are 0x-prefixed addresses; case is not normalised at this layer (the verifier MUST checksum-compare).
  • maxTimeoutSeconds is the max wall-clock time the client may take to produce a signed payload after receiving the 402 response.

extra is required (matching @x402/core) so that producers always provide the EIP-712 domain hint needed for signature verification. The most common shape is X402ExactEvmExtra.

Properties

amount

readonly amount: string

Defined in: src/x402/types.ts:131


asset

readonly asset: `0x${string}`

Defined in: src/x402/types.ts:132


extra

readonly extra: Record<string, unknown>

Defined in: src/x402/types.ts:135


maxTimeoutSeconds

readonly maxTimeoutSeconds: number

Defined in: src/x402/types.ts:134


network

readonly network: "eip155:137" | "eip155:80002"

Defined in: src/x402/types.ts:130


payTo

readonly payTo: `0x${string}`

Defined in: src/x402/types.ts:133


scheme

readonly scheme: "exact"

Defined in: src/x402/types.ts:129