@lelantos-org/sdk / x402 / PaymentRequirements
Interface: PaymentRequirements โ
Defined in: @lelantos-org/sdk/dist/x402/types.d.ts:19
One payment option offered by the server. scheme and network together pick the mechanism; @x402/core validates network only for CAIP-2 shape (min(3) and contains ":"), which is why shielded:<chainId> is legal.
amount and asset are denominated by the network, not by x402 โ for shielded:* that means circuit units and a MASP asset id, and for eip155:* it means ERC-20 base units and a token address.
Properties โ
amount โ
amount: string;Defined in: @lelantos-org/sdk/dist/x402/types.d.ts:22
asset โ
asset: string;Defined in: @lelantos-org/sdk/dist/x402/types.d.ts:23
extra? โ
optional extra?: Record<string, unknown>;Defined in: @lelantos-org/sdk/dist/x402/types.d.ts:26
maxTimeoutSeconds โ
maxTimeoutSeconds: number;Defined in: @lelantos-org/sdk/dist/x402/types.d.ts:25
network โ
network: string;Defined in: @lelantos-org/sdk/dist/x402/types.d.ts:21
payTo โ
payTo: string;Defined in: @lelantos-org/sdk/dist/x402/types.d.ts:24
scheme โ
scheme: string;Defined in: @lelantos-org/sdk/dist/x402/types.d.ts:20