GX402 Facilitator
Instance:https://api.gx402.orgPurpose: verify and settle GX402 payment flows across supported networks (EVM / SVM).
Stack: Node.js, Express, TypeScript.
Overview
The facilitator is a trusted backend service used in the GX402 payment flow. It performs three core actions:- Verify — Validate that the
paymentPayloadsatisfiespaymentRequirements. This prevents invalid or poisoned payloads from being settled on-chain. - Settle — Sign and submit the transaction using a configured signer (EVM or SVM).
- Supported — Report the payment kinds (networks, fee payers, RPCs) available on this instance.
Architecture & Flow
The GX402 Facilitator acts as a secure backend layer between the client and the blockchain.It ensures that every payment request is validated, signed, and settled under controlled conditions. The architecture consists of four main components:
1. Client
Any application initiating a GX402 payment:- Web apps
- Mini-apps
- Mobile apps
- Backend services
paymentPayload and paymentRequirements before interacting with the facilitator.
2. Facilitator (api.gx402.org)
A trusted server responsible for:- Verifying payment payloads
- Ensuring rules and requirements are met
- Selecting the correct signer or connected client
- Settling the payment on-chain
- Reporting supported networks
3. Signer Layer (EVM / SVM)
Depending on the network:- EVM → uses
EVM_PRIVATE_KEYwithcreateSigner - SVM (Solana) → uses
SVM_PRIVATE_KEYwithcreateSigner
4. Blockchain RPC / Node
The facilitator communicates directly with blockchain RPC endpoints to:- Broadcast transactions
- Fetch metadata
- Validate signatures
- Confirm settlements
