What is a Facilitator?
A facilitator is an independent service that:- Verifies the validity of payment payloads submitted by clients.
- Settles payments or identity proofs on-chain on behalf of servers.
Facilitator Responsibilities
- Verify payments: Confirm that the client’s submitted payload satisfies the server’s declared payment terms.
- Settle transactions: Post valid transactions to the blockchain and monitor for confirmation.
- Provide signed responses: Return structured verification and settlement responses that the server can use to authorize access.
Why Use a Facilitator?
Using a facilitator simplifies the integration process for service providers and ensures protocol-level consistency:- Reduced complexity: No need to maintain blockchain nodes or custom verification code.
- Standardized flows: Shared verification and settlement semantics across all b402 integrations.
- Faster onboarding: Start accepting payments instantly without blockchain-specific logic.
- Scalable trust model: Facilitators can be public, private, or self-hosted, depending on your architecture.
Live Facilitators
The official b402 Facilitator is currently live on BNB Chain mainnet and testnet, supporting BNB, USDT, USD1, and a growing list of BEP-20 tokens. See the Facilitator guide for architecture details and integration examples. We encourage community partners, node operators, and infrastructure teams to deploy their own facilitators to extend coverage across regions and networks.Additional endpoints will be listed here as the ecosystem evolves.
Interaction Flow
Below is the typical end-to-end process for verification and settlement in b402:- Client (agent) sends an HTTP request to a b402-enabled resource server.
- Server responds with 402 Payment Required, including structured payment details (amount, token, recipient, scheme).
- Client constructs a signed payment payload according to the chosen scheme.
- Client resends the request with an X-PAYMENTheader containing the payload.
- Server forwards the payload and payment details to the facilitator via the /verifyendpoint.
- Facilitator validates the payload using the specified scheme and network parameters.
- Facilitator returns a verification response (validorinvalid) to the server.
- Server, upon valid verification, fulfills the request and optionally calls /settleto finalize payment.
- Facilitator executes the on-chain settlement transaction and waits for confirmation.
- Facilitator returns a Payment Execution Responsecontaining settlement metadata.
- Server returns 200 OKwith the requested resource and anX-PAYMENT-RESPONSEheader containing encoded settlement data.