@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
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