Skip to content
PQ-402
Search
Ctrl
K
Cancel
GitHub
Select theme
Dark
Light
Auto
Menu
Getting started
Prerequisites
Install
Quickstart, local
Quickstart, testnet
Guides
Charge for a route
Pay from a script
Pay from an escrow
Pay from an agent budget
Register keys
Seal and open
Errors and retries
Concepts
x402 and PQ-402
How it works
Wire format
Security model
Reference
Configuration
Errors
Network and addresses
Repository scripts
API
@pq402/core
Classes
Pq402Error
Interfaces
CreatePayloadArgs
CreatePerennialPayloadArgs
MlDsaKeyPair
OpenRequestArgs
OpenResponseArgs
Payment
PerennialSpend
PqErc20Extra
PqErc20Payload
PqPerennialExtra
PqPerennialPayload
Receipt
ReceiptFields
ReceiptPayment
RequestDescription
SealingInfo
SealKeyPair
SealRequestArgs
SealResponseArgs
SignReceiptArgs
VerifyReceiptArgs
Withdrawal
Type Aliases
ErrorCode
Hex
Variables
ErrorCode
ML_DSA_87_ALGORITHM_ID
ML_DSA_87_PUBLIC_KEY_LENGTH
ML_DSA_87_SECRET_KEY_LENGTH
ML_DSA_87_SIGNATURE_LENGTH
ORIGINAL_CONTENT_TYPE_HEADER
PAYMENT_DOMAIN
PERENNIAL_ACTION_DOMAIN
PERENNIAL_SPEND_ACTION
PQC_KEY_STATUS_ADDRESS
PQC_VERIFY_ADDRESS
PROTOCOL_VERSION
QORECHAIN_TESTNET
RECEIPT_DOMAIN
REQUEST_DOMAIN
REQUEST_PURPOSE
RESPONSE_PURPOSE
SCHEME_ERC20
SCHEME_PERENNIAL
SEALED_CONTENT_TYPE
SEALING_EXTENSION
sealingInfoSchema
TESTNET_FUSD
WITHDRAWAL_DOMAIN
Functions
concatBytes
createPayload
createPerennialPayload
erc20ReceiptPayment
evmChainIdOf
explainError
fromBase64
fromHex
generateSealKeys
isAddress
isHexOfLength
mldsaKeyPair
mldsaSign
mldsaVerify
openRequest
openResponse
parseExtra
parsePayload
parsePerennialExtra
parsePerennialPayload
parseReceipt
parseSealingInfo
paymentMessage
paymentOf
perennialPaymentId
perennialReceiptPayment
perennialSpendMessage
perennialSpendOf
perennialSpendParamsHash
receiptMessage
receiptProblem
requestAad
requestHash
requestTarget
responseAad
sameAddress
sealingDeclaration
sealKeysFromSeed
sealRequest
sealResponse
signReceipt
toBase64
toHex
utf8
withdrawalMessage
@pq402/scheme-qorechain
Classes
ChainUnavailableError
EvmChainReader
EvmSettler
MemoryChain
PqErc20ClientScheme
PqErc20Facilitator
PqErc20ServerScheme
PqPerennialClientScheme
PqPerennialFacilitator
PqPerennialServerScheme
PriceParser
Interfaces
ChainReader
EvmChainReaderOptions
EvmSettlerOptions
PaymentView
PerennialPosition
PqcKeyStatus
PqErc20ClientOptions
PqErc20FacilitatorOptions
PqErc20ServerOptions
PqPerennialClientOptions
PqPerennialFacilitatorOptions
PqPerennialServerOptions
QoreNetwork
SettlementResult
Settler
Variables
erc20Abi
perennialVaultAbi
pq402EscrowAbi
pqcPrecompileAbi
qorechainTestnet
Functions
describePayment
perennialShortfall
viemChainOf
@pq402/server
Classes
NonceCache
PaymentGate
Interfaces
Facilitator
GateRequest
GateResponse
GatewayIdentity
HandlerResult
NodeAdapterOptions
PaidRequest
PaidRoute
PaymentGateOptions
Type Aliases
Handler
Variables
PROBE_HEADER
Functions
nodeListener
@pq402/client
Classes
Pq402Error
Interfaces
KeyDirectory
PaymentOutcome
Pq402FetchOptions
Type Aliases
Pq402Response
Variables
PROBE_HEADER
Functions
createPq402Fetch
Proof
Recorded testnet run
Project
Changelog
Security
GitHub
Select theme
Dark
Light
Auto
@pq402/server
Classes
Section titled “Classes”
NonceCache
PaymentGate
Interfaces
Section titled “Interfaces”
Facilitator
GateRequest
GateResponse
GatewayIdentity
HandlerResult
NodeAdapterOptions
PaidRequest
PaidRoute
PaymentGateOptions
Type Aliases
Section titled “Type Aliases”
Handler
Variables
Section titled “Variables”
PROBE_HEADER
Functions
Section titled “Functions”
nodeListener