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
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.
The pay.sh catalog is full of global APIs. None of them own Australia. Milypay wraps ABR, ASIC, G-NAF, ATO super, BOM weather, AusPost, and AusPayNet BSB as HTTP 402 endpoints agents can discover, pay, and call — in AUD stablecoins on Solana.
Get new articles in your inbox
Technical deep-dives on Solana tooling, infrastructure, and ecosystem. No noise.
