Skip to content

Interface: SchemeQuote ​

Defined in: packages/x402-express/src/scheme.ts:78

The scheme's own part of a quote.

Properties ​

asset ​

ts
asset: string;

Defined in: packages/x402-express/src/scheme.ts:84

Display symbol for asset.


extra ​

ts
extra: Record<string, unknown>;

Defined in: packages/x402-express/src/scheme.ts:86

The scheme-defined extra, with no per-challenge reference in it yet.


mintReference? ​

ts
mintReference?: () => Promise<Record<string, unknown>>;

Defined in: packages/x402-express/src/scheme.ts:92

Mint this quote's per-challenge merchant reference, returning the extra fields that carry it. Called only when a challenge is ISSUED, so a scheme may do something recordable in here. Absent when the quote carries none.

Returns ​

Promise<Record<string, unknown>>


network ​

ts
network: string;

Defined in: packages/x402-express/src/scheme.ts:82

Network id to advertise — the scheme's, when the merchant left it out.


referenceKey? ​

ts
referenceKey?: unknown;

Defined in: packages/x402-express/src/scheme.ts:104

Which quotes share one reference, compared by identity.

A 402 is one sale with several ways to pay, so entries inheriting the merchant's one generator must be issued one reference between them — a generator that books an order would otherwise book one per entry and be paid for one. Entries naming different generators get different keys, and so a reference each.

Absent means "nothing to share with": this quote mints its own.


scheme ​

ts
scheme: string;

Defined in: packages/x402-express/src/scheme.ts:80

Scheme id to advertise.