Skip to content

@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 โ€‹

ts
amount: string;

Defined in: @lelantos-org/sdk/dist/x402/types.d.ts:22


asset โ€‹

ts
asset: string;

Defined in: @lelantos-org/sdk/dist/x402/types.d.ts:23


extra? โ€‹

ts
optional extra?: Record<string, unknown>;

Defined in: @lelantos-org/sdk/dist/x402/types.d.ts:26


maxTimeoutSeconds โ€‹

ts
maxTimeoutSeconds: number;

Defined in: @lelantos-org/sdk/dist/x402/types.d.ts:25


network โ€‹

ts
network: string;

Defined in: @lelantos-org/sdk/dist/x402/types.d.ts:21


payTo โ€‹

ts
payTo: string;

Defined in: @lelantos-org/sdk/dist/x402/types.d.ts:24


scheme โ€‹

ts
scheme: string;

Defined in: @lelantos-org/sdk/dist/x402/types.d.ts:20

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub