# Faremeter ## Docs - [Facilitator Package](https://docs.faremeter.xyz/api/facilitator.src.md): Server-side facilitator for verifying and settling x402 payments on-chain - [Fetch Package](https://docs.faremeter.xyz/api/fetch.src.md): Client-side fetch wrapper with automatic x402 payment handling - [Fetch Internal Utilities](https://docs.faremeter.xyz/api/fetch.src.Namespace.internal.md): Internal utilities for processing x402 payment responses - [Fetch Mock Utilities](https://docs.faremeter.xyz/api/fetch.src.Namespace.mock.md): Mock fetch utilities for testing x402 payment flows - [Flex API Reference](https://docs.faremeter.xyz/api/flex-solana.src.md): API reference documentation for the Flex Payment Scheme SDK - [Flex solana.src.Namespace.facilitator](https://docs.faremeter.xyz/api/flex-solana.src.Namespace.facilitator.md) - [Info Package](https://docs.faremeter.xyz/api/info.src.md): Network and asset information utilities for EVM and Solana chains - [EVM Network Info](https://docs.faremeter.xyz/api/info.src.Namespace.evm.md): EVM chain ID, CAIP-2, and ERC-20 token utilities - [Solana Network Info](https://docs.faremeter.xyz/api/info.src.Namespace.solana.md): Solana cluster, network ID, and SPL token utilities - [Logs Package](https://docs.faremeter.xyz/api/logs.src.md): Structured logging system with pluggable backends - [Middleware Package](https://docs.faremeter.xyz/api/middleware.src.md): Server middleware for gating routes behind x402 payments - [Middleware Cache](https://docs.faremeter.xyz/api/middleware.src.Namespace.cache.md): LRU cache with time-based expiration for payment requirements - [Common Middleware](https://docs.faremeter.xyz/api/middleware.src.Namespace.common.md): Framework-agnostic middleware utilities and types - [Express Middleware](https://docs.faremeter.xyz/api/middleware.src.Namespace.express.md): x402 payment middleware for Express.js - [Hono Middleware](https://docs.faremeter.xyz/api/middleware.src.Namespace.hono.md): x402 payment middleware for Hono web framework - [EVM Payment Package](https://docs.faremeter.xyz/api/payment-evm.src.md): EVM payment handlers for ERC-20 and exact payment schemes - [ERC-20 Utilities](https://docs.faremeter.xyz/api/payment-evm.src.Namespace.erc20.md): ERC-20 token balance and transfer utilities - [EVM Exact Payment Scheme](https://docs.faremeter.xyz/api/payment-evm.src.Namespace.exact.md): EIP-3009 transferWithAuthorization payment handlers - [Solana Payment Package](https://docs.faremeter.xyz/api/payment-solana.src.md): Solana payment handlers for SPL tokens and exact payment schemes - [Solana Charge Payment Scheme](https://docs.faremeter.xyz/api/payment-solana.src.Namespace.charge.md): MPP charge-based payment handlers for Solana - [Solana Exact Payment Scheme](https://docs.faremeter.xyz/api/payment-solana.src.Namespace.exact.md): SPL token transfer payment handlers for Solana - [SPL Token Utilities](https://docs.faremeter.xyz/api/payment-solana.src.Namespace.splToken.md): SPL token balance and account utilities - [Rides Package](https://docs.faremeter.xyz/api/rides.src.md): High-level payer interface for multi-chain x402 payments - [Test Harness Package](https://docs.faremeter.xyz/api/test-harness.src.md): In-process test environment for x402 protocol testing - [Types Package](https://docs.faremeter.xyz/api/types.src.md): TypeScript type definitions and validators for the x402 protocol - [Client Types](https://docs.faremeter.xyz/api/types.src.Namespace.client.md): Type definitions for payment handlers and execers - [EVM Types](https://docs.faremeter.xyz/api/types.src.Namespace.evm.md): Type definitions for EVM addresses, private keys, and chains - [Facilitator Types](https://docs.faremeter.xyz/api/types.src.Namespace.facilitator.md): Type definitions for facilitator handlers and requirements - [MPP Types](https://docs.faremeter.xyz/api/types.src.Namespace.mpp.md): Machine Payments Protocol types, encoding, and handler interfaces - [Pricing Types](https://docs.faremeter.xyz/api/types.src.Namespace.pricing.md): Protocol-agnostic pricing and handler capability types - [Solana Types](https://docs.faremeter.xyz/api/types.src.Namespace.solana.md): Type definitions for Solana base58 addresses - [x402 Protocol Types (v1)](https://docs.faremeter.xyz/api/types.src.Namespace.x402.md): Type definitions for x402 v1 protocol messages and payloads - [x402 Version Adapters](https://docs.faremeter.xyz/api/types.src.Namespace.x402Adapters.md): Conversion utilities between x402 v1 and v2 protocol formats - [x402 Handler Utilities](https://docs.faremeter.xyz/api/types.src.Namespace.x402Handlers.md): Bridges ResourcePricing and FacilitatorHandler to x402 types - [x402 Protocol Types (v2)](https://docs.faremeter.xyz/api/types.src.Namespace.x402v2.md): Type definitions for x402 v2 protocol messages and payloads - [Crossmint Wallet Package](https://docs.faremeter.xyz/api/wallet-crossmint.src.md): Crossmint custodial wallet integration for Solana - [EVM Wallet Package](https://docs.faremeter.xyz/api/wallet-evm.src.md): Local wallet creation for EVM chains using private keys - [Ledger Wallet Package](https://docs.faremeter.xyz/api/wallet-ledger.src.md): Ledger hardware wallet integration for EVM and Solana - [OWS Wallet Package](https://docs.faremeter.xyz/api/wallet-ows.src.md): Open Wallet Standard integration for Solana and EVM - [Squads Multisig Wallet Package](https://docs.faremeter.xyz/api/wallet-solana-squads.src.md): Squads multisig wallet integration for Solana - [Solana Wallet Package](https://docs.faremeter.xyz/api/wallet-solana.src.md): Local wallet creation for Solana using keypairs - [Fetch Wrapper](https://docs.faremeter.xyz/client/fetch-wrapper.md): Lower-level fetch wrapper with pluggable payment handlers and full control. - [Logging](https://docs.faremeter.xyz/client/logging.md): Configuring structured logging with @faremeter/logs. - [Payment Handlers](https://docs.faremeter.xyz/client/payment-handlers.md): Setting up Solana and EVM payment handlers for the fetch wrapper. - [Rides SDK](https://docs.faremeter.xyz/client/rides-sdk.md): The high-level SDK for making x402 payments with zero configuration. - [Wallet Configuration](https://docs.faremeter.xyz/client/wallet-configuration.md): Setup guides for each wallet adapter in faremeter. - [Wallet Setup](https://docs.faremeter.xyz/client/wallet-setup.md): Create and fund wallets for Solana devnet and EVM testnet development. - [Community](https://docs.faremeter.xyz/community.md): Get help and connect with the faremeter community. - [Facilitators](https://docs.faremeter.xyz/concepts/facilitators.md): How facilitators verify and settle x402 payments on-chain. - [How x402 Works](https://docs.faremeter.xyz/concepts/how-x402-works.md): The HTTP 402 Payment Required protocol that powers faremeter. - [MPP (Machine Payments Protocol)](https://docs.faremeter.xyz/concepts/mpp.md): How Faremeter supports the Machine Payments Protocol via its x402v2 adapter. - [Networks & Assets](https://docs.faremeter.xyz/concepts/networks-and-assets.md): Supported blockchain networks and tokens in faremeter. - [Payment Handlers](https://docs.faremeter.xyz/concepts/payment-handlers.md): The plugin interface that connects wallets to payment schemes. - [Payment Schemes](https://docs.faremeter.xyz/concepts/payment-schemes.md): How payment schemes work in faremeter and what chains are supported. - [Protocol Versions](https://docs.faremeter.xyz/concepts/protocol-versions.md): Differences between x402 v1 and v2, and how to migrate. - [Wallets & Signing](https://docs.faremeter.xyz/concepts/wallets-and-signing.md): How wallet adapters work in faremeter and what wallet types are available. - [Flex Concepts](https://docs.faremeter.xyz/flex/concepts.md): Escrow accounts, session keys, splits, holds, settlement, refund windows, and deadman switch. - [Flex Facilitator](https://docs.faremeter.xyz/flex/facilitator.md): Run a Flex facilitator: validate authorizations, manage holds, and settle on-chain. - [Flex Overview](https://docs.faremeter.xyz/flex/overview.md): Prepaid escrow and off-chain authorization for agentic payment flows. - [Flex Program Reference](https://docs.faremeter.xyz/flex/program-reference.md): On-chain Anchor program: instructions, accounts, PDAs, constants, and errors. - [Flex Quickstart](https://docs.faremeter.xyz/flex/quickstart.md): Create an escrow, register a session key, and pay for a Flex-protected endpoint. - [Introduction](https://docs.faremeter.xyz/introduction.md): Faremeter is a collection of composable TypeScript libraries for making and accepting machine payments over HTTP. - [Consuming a Marketplace](https://docs.faremeter.xyz/marketplace/client.md): Discover paid APIs from a marketplace registry and call them from any wallet. - [Gateway SDK](https://docs.faremeter.xyz/marketplace/gateway.md): @faremeter/gateway-nginx generates the nginx + Lua config that turns API nodes into a payment-enforcing proxy. - [Marketplace Overview](https://docs.faremeter.xyz/marketplace/overview.md): The OSS pieces that make a multi-tenant x402 marketplace possible — and where to find a hosted instance. - [Publishing on a Marketplace](https://docs.faremeter.xyz/marketplace/publisher.md): How a publisher puts an x402-paid API behind a marketplace proxy. - [Self-Hosting a Marketplace](https://docs.faremeter.xyz/marketplace/self-hosting.md): Pointers for operators who want to run the Faremeter marketplace stack themselves. - [Plugins](https://docs.faremeter.xyz/plugins.md): Build custom wallet adapters, payment schemes, and middleware integrations for faremeter. - [Quick Start](https://docs.faremeter.xyz/quickstart.md): Make your first payment with faremeter in three steps using @faremeter/rides. - [AI Agent Payments](https://docs.faremeter.xyz/recipes/ai-agent-payments.md): An AI agent that autonomously pays for API access using faremeter. - [Dynamic Pricing](https://docs.faremeter.xyz/recipes/dynamic-pricing.md): Vary payment requirements per request using lower-level middleware primitives. - [Gated Content](https://docs.faremeter.xyz/recipes/gated-content.md): Protect premium content behind x402 payment walls. - [MCP Payment Proxy](https://docs.faremeter.xyz/recipes/mcp-proxy.md): Run a local proxy that lets any MCP client pay for x402-protected MCP servers automatically. - [Multi-chain Payments](https://docs.faremeter.xyz/recipes/multi-chain-payments.md): Accept payments on both Solana and EVM from the same endpoint. - [Pay-per-API-Call](https://docs.faremeter.xyz/recipes/pay-per-api-call.md): Monetize a REST API with per-request micropayments. - [Release Notes](https://docs.faremeter.xyz/release-notes.md) - [Express](https://docs.faremeter.xyz/server/express.md): Setting up x402 payment middleware with Express. - [Facilitator](https://docs.faremeter.xyz/server/facilitator.md): Running your own x402 payment facilitator with @faremeter/facilitator. - [Hono](https://docs.faremeter.xyz/server/hono.md): Setting up x402 payment middleware with Hono. - [Middleware Overview](https://docs.faremeter.xyz/server/middleware-overview.md): Server-side middleware for accepting x402 and MPP payments on your API. - [Testing](https://docs.faremeter.xyz/testing.md): Write integration tests for x402 payment flows using @faremeter/test-harness. - [Troubleshooting](https://docs.faremeter.xyz/troubleshooting.md): Common errors and how to resolve them when integrating faremeter. - [Why Faremeter](https://docs.faremeter.xyz/why-faremeter.md): Design philosophy and motivation behind faremeter.