Skip to content

@lelantos-org/sdk / x402 / PayableSchemeClient

Interface: PayableSchemeClient โ€‹

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

A SchemeNetworkClient that can also price an offer without paying it.

@x402/core has no equivalent โ€” its selector picks the first entry and fails hard โ€” but choosing among several accepts[] entries needs one: an offer this wallet cannot satisfy should fall through to the next rather than abort the request, and only the mechanism can tell the difference.

Extends โ€‹

Properties โ€‹

scheme โ€‹

ts
readonly scheme: string;

Defined in: @lelantos-org/sdk/dist/x402/types.d.ts:73

Inherited from โ€‹

SchemeNetworkClient.scheme

Methods โ€‹

createPaymentPayload() โ€‹

ts
createPaymentPayload(
   x402Version, 
   paymentRequirements, 
   context?
): Promise<PaymentPayloadResult>;

Defined in: @lelantos-org/sdk/dist/x402/types.d.ts:74

Parameters โ€‹

ParameterType
x402Versionnumber
paymentRequirementsPaymentRequirements
context?PaymentPayloadContext

Returns โ€‹

Promise<PaymentPayloadResult>

Inherited from โ€‹

SchemeNetworkClient.createPaymentPayload


quote() โ€‹

ts
quote(paymentRequirements): Promise<PaymentQuote>;

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

Price paymentRequirements, or reject with an X402PaymentError whose reason is unsupported-requirements.

MUST NOT move funds or mutate state: the selector calls this on offers it may well discard.

Parameters โ€‹

ParameterType
paymentRequirementsPaymentRequirements

Returns โ€‹

Promise<PaymentQuote>

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