Skip to content

Interface: SharedTerms ​

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

The fields that describe the sale rather than one way of paying for it.

Named once for all the ways to pay, and all but resource and description may be overridden per entry. Those two cannot: x402 v2 §5.1.2 puts resource on the 402 itself rather than on each accepts[] entry, so entries disagreeing about it would make the envelope describe one sale and its entries another.

Extended by ​

Properties ​

description? ​

ts
description?: Resolvable<string>;

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

Human description. Default: Access to <path>.


maxTimeoutSeconds? ​

ts
maxTimeoutSeconds?: Resolvable<number>;

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

Seconds the client has to complete payment. Default 60. Compared: the facilitator holds a payment for at most this long, and a payer echoing a longer one is refused with policy_timeout.


network? ​

ts
network?: Resolvable<string>;

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

Network id — on Canton a canton:<name> from x402-core's networks.

Optional when the scheme can discover it; see the scheme's own spec.


payTo ​

ts
payTo: Resolvable<string>;

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

Merchant party receiving payment.


resource? ​

ts
resource?: Resolvable<string>;

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

Resource URL. Default: the request's absolute URL.


scheme? ​

ts
scheme?: Resolvable<string>;

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

Scheme id. Defaults to the scheme adapter's own id.