x444 Facilitator
x444 Facilitator API Reference
Overview
The x444 Facilitator API implements the x402 protocol for blockchain payment verification and settlement. It enables developers, dApps, and AI agents to verify and settle payments across multiple networks in a gasless, standardized, and chain-agnostic way.
Base URL
https://facilitator.x444.ioVersion: 1.0.0 License: MIT Contact: [email protected]
Authentication
Include your API key in the request header:
X-API-Key: your-api-key1. Get Facilitator Information
GET /v1
Returns basic information about the facilitator service and available endpoints.
Response
Use Case: Check facilitator connectivity and discover all available routes.
2. Check Service Health
GET /v1/health
Checks the health of the facilitator service and its blockchain connections.
Response
Use Case: Useful for uptime monitoring and infrastructure diagnostics.
3. Get Supported Payment Types
GET /v1/supported
Lists all payment schemes and networks supported by the facilitator.
Response
Errors
500 Internal Server Error: Network configuration or internal failure.
Use Case: Check which networks and schemes your app can interact with.
4. Get Available Resources
GET /v1/resources
Returns a list of supported resources and networks.
Response
Use Case: Discover available infrastructure for EVM and SVM environments.
5. Verify Payment
POST /v1/verify
Verifies the validity of a payment payload before settlement. Checks digital signatures, nonces, timestamps, and payment data against requirements.
Request
Response
Errors
400 Bad Request: Invalid payload or signature.
Use Case: Run a pre-flight check before settlement to ensure transaction validity.
6. Settle Payment
POST /v1/settle
Finalizes the payment by submitting it to the blockchain. This executes the actual token transfer through the x444 wrapper.
Request
Response
Errors
400 Bad Request: Invalid data or schema mismatch.500 Internal Server Error: Blockchain transaction failed.
Use Case: Execute verified transactions on-chain through the facilitator’s settlement flow.
Typical Flow
Verification ensures payload validity. Settlement executes the transaction.
Example Integration (Node.js)
Notes
All timestamps are Unix epoch seconds.
Nonces must be unique per payer to prevent replay attacks.
/verifyand/settleare idempotent.Supports both EVM and SVM networks.
Summary
The x444 Facilitator API turns standard HTTP requests into blockchain transactions. It provides a unified verification and settlement layer that powers instant, gasless payments for the AI economy.
Last updated