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:
amountis a decimal string of atomic token units (uint256-safe).assetandpayToare 0x-prefixed addresses; case is not normalised at this layer (the verifier MUST checksum-compare).maxTimeoutSecondsis 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
readonlyamount:string
Defined in: src/x402/types.ts:131
asset
readonlyasset:`0x${string}`
Defined in: src/x402/types.ts:132
extra
readonlyextra:Record<string,unknown>
Defined in: src/x402/types.ts:135
maxTimeoutSeconds
readonlymaxTimeoutSeconds:number
Defined in: src/x402/types.ts:134
network
readonlynetwork:"eip155:137"|"eip155:80002"
Defined in: src/x402/types.ts:130
payTo
readonlypayTo:`0x${string}`
Defined in: src/x402/types.ts:133
scheme
readonlyscheme:"exact"
Defined in: src/x402/types.ts:129