Interface: BaseRequirementsSpec
Defined in: packages/x402-express/src/scheme.ts:61
What a scheme adapter is handed: the shared terms with one way to pay merged in. A scheme's own spec extends this with whatever its extra needs.
Extends
Extended by
Properties
amount
amount: Resolvable<string>;Defined in: packages/x402-express/src/scheme.ts:68
Price in atomic units, as an integer string: 1 CC = 1e10, so "500000000" is 0.05 CC. The same unit the wire carries — the middleware does not convert, so a price means the same thing here as in a builder or in an echoed requirement.
description?
description?: Resolvable<string>;Defined in: packages/x402-express/src/scheme.ts:48
Human description. Default: Access to <path>.
Inherited from
maxTimeoutSeconds?
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.
Inherited from
network?
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.
Inherited from
payTo
payTo: Resolvable<string>;Defined in: packages/x402-express/src/scheme.ts:36
Merchant party receiving payment.
Inherited from
resource?
resource?: Resolvable<string>;Defined in: packages/x402-express/src/scheme.ts:46
Resource URL. Default: the request's absolute URL.
Inherited from
scheme?
scheme?: Resolvable<string>;Defined in: packages/x402-express/src/scheme.ts:44
Scheme id. Defaults to the scheme adapter's own id.