@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 โ
readonly scheme: string;Defined in: @lelantos-org/sdk/dist/x402/types.d.ts:73
Inherited from โ
Methods โ
createPaymentPayload() โ
createPaymentPayload(
x402Version,
paymentRequirements,
context?
): Promise<PaymentPayloadResult>;Defined in: @lelantos-org/sdk/dist/x402/types.d.ts:74
Parameters โ
| Parameter | Type |
|---|---|
x402Version | number |
paymentRequirements | PaymentRequirements |
context? | PaymentPayloadContext |
Returns โ
Promise<PaymentPayloadResult>
Inherited from โ
SchemeNetworkClient.createPaymentPayload
quote() โ
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 โ
| Parameter | Type |
|---|---|
paymentRequirements | PaymentRequirements |
Returns โ
Promise<PaymentQuote>