Documentation Index
Fetch the complete documentation index at: https://developers.fireblocks.com/llms.txt
Use this file to discover all available pages before exploring further.
Open-source or hosted? This page describes the open-source facilitator that you run yourself. Fireblocks also offers a fully managed, fully secured hosted x402 Facilitator — production-grade security, operational support, monitoring, and a managed endpoint, with no infrastructure for you to run or upgrade. Talk to us about early access.
What x402 is
x402 is an open protocol that gives the long-reserved HTTP 402 status code a job. A server responds 402 with a price quote; the client signs an EIP-712 message authorizing exactly that payment; the client retries the same request with apayment-signature header; the server verifies and delivers the resource.
The protocol is designed for machine-to-machine and agent-to-service commerce: API monetization, pay-per-call data, agentic checkout, content metering. Payments are denominated in ERC-20 tokens (commonly USDC) on EVM-compatible networks. The signature authorizes a single transfer of a specific amount — there is no long-lived approval, no subscription state, and no payment account to maintain.
Where Fireblocks fits
In the x402 model, a facilitator is the service merchants call to verify signatures and settle payments. Fireblocks provides the facilitator implementation and the on-chain settlement layer:- The facilitator validates the client’s EIP-712 signature off-chain.
- When the merchant requests settlement, the facilitator submits a
CONTRACT_CALLtransaction through Fireblocks, drawing from the merchant’s vault account. - Raw private keys never leave Fireblocks. The facilitator process holds no signing material.
What’s included
Out of the box, the facilitator gives you:- API-only surface —
/api/payments/{create,verify,settle},/api/discovery/*, and a management API. No reverse proxy of merchant traffic. - Fireblocks settlement — on-chain transfers via
CONTRACT_CALL. No raw private keys in the facilitator process. - Pluggable payment store — in-memory (tests), SQLite (default), or PostgreSQL.
- Four transfer mechanisms —
eip-3009(USDC-style),permit2andupto-permit2(any ERC-20),erc7710(smart-account delegation). - Multi-configuration — one deployment can host many merchants, each with their own Fireblocks vault, products, and API keys.
- Two auth surfaces — persistent API keys (opaque) for payment processing; JWT (HS256 or JWKS) for the management API. Never mixed.
- Role-based profile — run the same binary as
processing,management, orall. - Remote admin CLI (
x402) — pure HTTP client for/api/admin/*. Authenticates with a JWT minted locally. Works from a laptop, CI, or a dashboard. - Local bootstrap (
npm run setup) — scaffold config, rotate JWT secrets, import legacy SQLite, all filesystem-only. - Testnet-only by default — the facilitator refuses to boot or register mainnet assets unless
X402_ALLOW_MAINNET=true.
How a payment flows
- The client sends a normal HTTP request to your server.
- Your middleware sees no
payment-signatureheader and returns 402 with a JSON quote describing the amount, asset, and recipient. - The client signs an EIP-712 message authorizing exactly that transfer. No gas, no on-chain transaction at this stage.
- The client retries the same request with
payment-signature: <base64>. - Your middleware calls
POST /api/payments/verifyon the facilitator. If the signature is valid, it callsPOST /api/payments/settle, then returns the resource with aPAYMENT-RESPONSEheader.
Prerequisites
- Node.js 20 or later.
- A Fireblocks workspace with an API key, a vault account ID, and the PEM-format API secret file. If you are evaluating the facilitator locally and do not have Fireblocks yet, the server still starts with an empty config — you just cannot call
fireblocks testor settle payments.
Quick start
The walkthrough below takes you from a fresh clone to a running facilitator with one merchant configured.What to read next
- Integration — wire the facilitator into your merchant server, the payment processing API endpoints, transfer mechanisms, and pricing modes.
- Operating and production — the config file, auth model, management API, CLI reference, Payment Instruction Integrity, production deployment, and operator responsibilities.
Helpful Links
- Repository — source code, issue tracker, releases.
ARCHITECTURE.md— internal source layout, repository conventions, and contributor-facing detail.DISCLAIMER.md— operator-facing risk and compliance notices.- x402.org — the open protocol specification.