PqErc20ClientScheme
Defined in: packages/scheme-qorechain/src/client.ts:20
x402 SchemeNetworkClient for pq-erc20. A payment commits to one HTTP
request, which the scheme interface cannot see, so the instance registered
with an x402Client must be bound to the request first with
PqErc20ClientScheme.forRequest. @pq402/client does this per call.
Implements
Section titled “Implements”SchemeNetworkClient
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PqErc20ClientScheme(
options,requestHash?):PqErc20ClientScheme
Defined in: packages/scheme-qorechain/src/client.ts:23
Parameters
Section titled “Parameters”options
Section titled “options”requestHash?
Section titled “requestHash?”`0x${string}`
Returns
Section titled “Returns”PqErc20ClientScheme
Properties
Section titled “Properties”scheme
Section titled “scheme”
readonlyscheme:"pq-erc20"=SCHEME_ERC20
Defined in: packages/scheme-qorechain/src/client.ts:21
Implementation of
Section titled “Implementation of”SchemeNetworkClient.scheme
Methods
Section titled “Methods”createPaymentPayload()
Section titled “createPaymentPayload()”createPaymentPayload(
x402Version,requirements):Promise<PaymentPayloadResult>
Defined in: packages/scheme-qorechain/src/client.ts:33
Parameters
Section titled “Parameters”x402Version
Section titled “x402Version”number
requirements
Section titled “requirements”PaymentRequirements
Returns
Section titled “Returns”Promise<PaymentPayloadResult>
Implementation of
Section titled “Implementation of”SchemeNetworkClient.createPaymentPayload
forRequest()
Section titled “forRequest()”forRequest(
requestHash):PqErc20ClientScheme
Defined in: packages/scheme-qorechain/src/client.ts:29
A copy of this scheme that pays for the request with this requestHash.
Parameters
Section titled “Parameters”requestHash
Section titled “requestHash”`0x${string}`
Returns
Section titled “Returns”PqErc20ClientScheme