PqPerennialFacilitator
Defined in: packages/scheme-qorechain/src/perennial.ts:146
x402 SchemeNetworkFacilitator for pq-perennial (docs/spec.md, section 6.2):
checks the spend against the position and the beneficiary’s on-chain key,
then relays vault.spend(...) and confirms the Spent event.
Implements
Section titled “Implements”SchemeNetworkFacilitator
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PqPerennialFacilitator(
options):PqPerennialFacilitator
Defined in: packages/scheme-qorechain/src/perennial.ts:151
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”PqPerennialFacilitator
Properties
Section titled “Properties”caipFamily
Section titled “caipFamily”
readonlycaipFamily:"eip155:*"="eip155:*"
Defined in: packages/scheme-qorechain/src/perennial.ts:148
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-perennial"=SCHEME_PERENNIAL
Defined in: packages/scheme-qorechain/src/perennial.ts:147
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/perennial.ts:155
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/perennial.ts:159
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/perennial.ts:177
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/perennial.ts:163
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