Skip to main content
The Facilitator API handles payment verification and on-chain settlement for the b402 protocol. It supports two payment models, wallet deployment, and privacy operations.

Base URL

https://facilitatorv3.b402.ai

Payment Models

The Facilitator supports two distinct payment flows: EOA Payments use EIP-712 typed signatures. The buyer signs a TransferWithAuthorization message off-chain, and the Facilitator verifies the signature then submits the on-chain transaction.
POST /verify   → Verify EIP-712 signature
POST /settle   → Execute on-chain settlement
Smart Wallet Payments use ERC-4337 UserOperations. The Facilitator constructs a UserOp with fee injection, the buyer signs it, and the Facilitator submits it to a bundler for execution.
POST /wallet/verify   → Build unsigned UserOp
POST /wallet/settle   → Submit signed UserOp

Endpoint Groups

GroupEndpointsDescription
EOA PaymentsPOST /verify, POST /settleEIP-712 signature-based payments for EOA wallets
Smart Wallet PaymentsPOST /wallet/verify, POST /wallet/settleUserOp-based payments for ERC-7579 smart wallets
Wallet DeploymentPOST /deploy/verify, POST /deploy/settle, POST /deploy/wallet/verify, POST /deploy/wallet/settle, GET /wallet/:owner, GET /wallet/:owner/master, POST /wallet/claimDeploy and manage smart wallets
IncognitoPOST /wallet/incognito/verify, POST /wallet/incognito/settlePrivacy-preserving payments via privacy pool
UtilityGET /healthService health and status

Request Format

All requests with a body use JSON. Set the Content-Type header accordingly.
Content-Type: application/json

Error Format

All errors follow a consistent envelope:
{
  "error": {
    "code": "bad_request",
    "message": "Invalid payment payload: missing token address",
    "doc_url": "https://b402.ai#bad_request"
  }
}
FieldTypeDescription
codestringMachine-readable error code
messagestringHuman-readable description
doc_urlstringLink to relevant documentation
See the Errors page for a full list of error codes.

Authentication

Most endpoints are public and require no authentication. Standard buyer/seller payment flows (verify, settle, wallet operations) work without API keys. Admin endpoints (internal deployment operations) require the x-admin-api-key header. See Authentication for details.