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 select the mechanism; @x402/core validates network only for CAIP-2 shape (min(3) and contains ":"), so shielded:<chainId> is valid.

amount, asset and payTo are denominated by the network: circuit units, a MASP asset id and a lelantos1… shielded address for shielded:*; ERC-20 base units, a token address and an EVM address for eip155:*.

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