Faremeter is a collection of libraries, tools, and applications designed to allow agents and other utilities to transparently make web3 payments using web2 infrastructure. By leveraging existing and emerging standards, you can use Faremeter to attach new and legacy client SDKs and API services to blockchain payments, without extensive rewrites.
Under the hood, Faremeter is built around:
- Using HTTP and the existing
402 Payment Requiredconcepts. - A plugin system that's standard, wallet, and blockchain agnostic.
- Wrappers, middleware, and proxies that let you easily integrate into your existing codebase.
For more information on our approach, take a look at our architecture document.
The implication of this is:
- New payment strategies (e.g. x402 Schemes) can be developed outside of the core Faremeter project.
- Blockchains with specific behaviors and needs can be supported without forcing a one-size-fits-all approach.
- Wallets and other infrastructure can be connected to Faremeter without "official" support.
To get started with the tooling, take a look at the quickstart guide. To start developing, take a look at the developer notes.
Faremeter supports the following industry standards today:
- Coinbase's x402 — both v1 and v2 of the protocol, negotiated automatically.
- MPP (Machine Payments Protocol) — the spec is still evolving; we currently ship the
chargeintent on Solana.
We're tracking these for future support:
See the compatibility document for the detailed status of each standard.
Faremeter ships with payment support for both the Solana and EVM ecosystems:
- A pluggable client library.
- A middleware with both remote and in-process payment handlers, plus an OpenAPI-driven pricing middleware for spec-driven endpoints.
- Solana payment schemes (
flex,exact, and the MPPchargeintent) in @faremeter/payment-solana. - EVM
exactover EIP-3009 gasless USDC in @faremeter/payment-evm, with network coverage including Base, Polygon, Monad, and Skale (mainnet and testnets). - A payment facilitator and legacy service proxy, plus an nginx gateway.
- Wallet integrations for Solana, EVM, Ledger, Squads multisig, Crossmint, and OWS.
Faremeter is sponsored and built by the engineers at ABK Labs along with other open-source contributors.