PqErc20Facilitator
Defined in: packages/scheme-qorechain/src/facilitator.ts:44
x402 SchemeNetworkFacilitator for pq-erc20 (docs/spec.md, sections 6 and 7).
Register it on an x402Facilitator, or call verify / settle directly.
Implements
Section titled “Implements”SchemeNetworkFacilitator
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PqErc20Facilitator(
options):PqErc20Facilitator
Defined in: packages/scheme-qorechain/src/facilitator.ts:49
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”PqErc20Facilitator
Properties
Section titled “Properties”caipFamily
Section titled “caipFamily”
readonlycaipFamily:"eip155:*"="eip155:*"
Defined in: packages/scheme-qorechain/src/facilitator.ts:46
CAIP family pattern that this facilitator supports. Used to group signers by blockchain family in the supported response.
Examples
Section titled “Examples”// EVM facilitatorsreadonly caipFamily = "eip155:*";// SVM facilitatorsreadonly caipFamily = "solana:*";Implementation of
Section titled “Implementation of”SchemeNetworkFacilitator.caipFamily
scheme
Section titled “scheme”
readonlyscheme:"pq-erc20"=SCHEME_ERC20
Defined in: packages/scheme-qorechain/src/facilitator.ts:45
Implementation of
Section titled “Implementation of”SchemeNetworkFacilitator.scheme
Methods
Section titled “Methods”getExtra()
Section titled “getExtra()”getExtra(
_network):Record<string,unknown> |undefined
Defined in: packages/scheme-qorechain/src/facilitator.ts:53
Get mechanism-specific extra data needed for the supported kinds endpoint. This method is called when building the facilitator’s supported response.
Parameters
Section titled “Parameters”_network
Section titled “_network”`${string}:${string}`
Returns
Section titled “Returns”Record<string, unknown> | undefined
Extra data object or undefined if no extra data is needed
Examples
Section titled “Examples”// EVM schemes return undefined (no extra data needed)getExtra(network: Network): undefined { return undefined;}// SVM schemes return feePayer addressgetExtra(network: Network): Record<string, unknown> | undefined { return { feePayer: this.signer.address };}Implementation of
Section titled “Implementation of”SchemeNetworkFacilitator.getExtra
getSigners()
Section titled “getSigners()”getSigners(
_network):string[]
Defined in: packages/scheme-qorechain/src/facilitator.ts:57
Get signer addresses used by this facilitator for a given network. These are included in the supported response to help clients understand which addresses might sign/pay for transactions.
Supports multiple addresses for load balancing, key rotation, and high availability.
Parameters
Section titled “Parameters”_network
Section titled “_network”string
Returns
Section titled “Returns”string[]
Array of signer addresses (wallet addresses, fee payer addresses, etc.)
Examples
Section titled “Examples”// EVM facilitatorgetSigners(network: string): string[] { return [...this.signer.getAddresses()];}// SVM facilitatorgetSigners(network: string): string[] { return [...this.signer.getAddresses()];}Implementation of
Section titled “Implementation of”SchemeNetworkFacilitator.getSigners
settle()
Section titled “settle()”settle(
payload,requirements):Promise<SettleResponse>
Defined in: packages/scheme-qorechain/src/facilitator.ts:75
Parameters
Section titled “Parameters”payload
Section titled “payload”PaymentPayload
requirements
Section titled “requirements”PaymentRequirements
Returns
Section titled “Returns”Promise<SettleResponse>
Implementation of
Section titled “Implementation of”SchemeNetworkFacilitator.settle
verify()
Section titled “verify()”verify(
payload,requirements):Promise<VerifyResponse>
Defined in: packages/scheme-qorechain/src/facilitator.ts:61
Parameters
Section titled “Parameters”payload
Section titled “payload”PaymentPayload
requirements
Section titled “requirements”PaymentRequirements
Returns
Section titled “Returns”Promise<VerifyResponse>
Implementation of
Section titled “Implementation of”SchemeNetworkFacilitator.verify