Skip to content

@lelantos-org/sdk / x402 / PaymentQuote

Interface: PaymentQuote โ€‹

Defined in: @lelantos-org/sdk/dist/x402/mechanism.d.ts:12

What an offer would cost, in terms the wallet can reason about.

Networks quote prices in their own units โ€” a MASP asset id and circuit units on shielded:*, an ERC-20 address and base units on eip155:* โ€” and only the mechanism knows how to read its own. Normalising here lets one budget cover both; the selector never prices an offer itself.

Properties โ€‹

amount โ€‹

ts
amount: CircuitAmount;

Defined in: @lelantos-org/sdk/dist/x402/mechanism.d.ts:14

Circuit units, rounded up. The denomination every Wallet method uses.


asset โ€‹

ts
asset: AssetInfo;

Defined in: @lelantos-org/sdk/dist/x402/mechanism.d.ts:16

The MASP asset the payment draws on.

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