Faremeter: x402 payments with @faremeter/rides logoFaremeter: x402 payments with @faremeter/rides
One fetch. Wallet signs. Facilitator settles. Resource comes back.
devrels.xyz/a/347Faremeter is a set of TypeScript libraries for making and accepting machine payments over HTTP. It implements x402 (HTTP 402) and MPP via an x402 v2 adapter. Fast path: @faremeter/rides. Docs: docs.faremeter.xyz/quickstart. X @faremeterxyz.
Node 18+. Solana keypair file or an EVM private key. Install @faremeter/rides, @faremeter/logs, dotenv, tsx. payer.addLocalWallet then payer.fetch. The live example hits https://helius.api.corbits.dev. One call: 402, pick a wallet, sign locally, retry with X-PAYMENT (v1) or PAYMENT-SIGNATURE (v2). Facilitator verifies. Resource returns.
import "dotenv/config"
import { payer } from "@faremeter/rides"
import { getLogger } from "@faremeter/logs"
const logger = await getLogger(["quickstart"])
await payer.addLocalWallet(process.env.PAYER_KEYPAIR_PATH)
const response = await payer.fetch("https://helius.api.corbits.dev")
logger.info(`status: ${response.status}`)OWS vaults, Ledger, Crossmint: addWalletAdapter, not local key material. Lower-level: @faremeter/fetch. Servers: Express and Hono middleware. Own facilitator: @faremeter/facilitator. Flex is prepaid escrow plus session keys. Networks from live docs: Solana (devnet/testnet/mainnet-beta) and EVM (Base, Base Sepolia, Polygon, Monad, SKALE Europa testnet). Assets include USDC on both, plus several Solana stables. Clone faremeter-ts-playground if you want the monorepo already wired.
Keep reading
x402, AP2, MPP, ACP, TAP, UCP and PayPal Agent Ready get lumped together as "agent payments", but they sit at different layers. Two move money over HTTP 402, two prove who authorized what, two define a checkout, and one is a PSP adapter. Here is what each one looks like in code, what it settles on, what it costs where that is published, and how to pick.
Sign in with SIWX, pay GET /get-card over x402, then poll GET /get-card-data until the card is ready. USA merchants, caller use, no fee.
MCPay sits in front of existing MCP servers: 402 → pay USDC → retry tool call. Open-source proxy + JS SDK.
Get new articles in your inbox
Technical deep-dives on Solana tooling, infrastructure, and ecosystem. No noise.
