FomoPay API · v1

Pay the @ from your code.

One call resolves a verified Fomo identity, routes the payment to its verified payout wallet on Robinhood Chain, and gives you a receipt. You never collect, store or paste a wallet address.

the whole integration
await fomopay.send({
  to: "@their_handle",
  amount: 100,
  asset: "USDG",
});

That is the product in one line. Everything else — identity resolution, the verified destination, gas, confirmation tracking, receipts, idempotency — happens underneath.

Your code never sees a wallet address. FomoPay resolves the handle server-side to the payout wallet FomoPay verified for that identity on Robinhood Chain, pays it from your Reward Vault, and tells you when the chain has confirmed it.

Wallet payments where a person signs with their own wallet use the same identity layer through a checkout link — see Payments.

T
@their_handle
FomoPay ReadyRobinhood Chain
  1. Identity resolved
    FomoPay Ready — a payout wallet verified by FomoPay
  2. Routed server-side
    To their verified wallet on Robinhood Chain. You never handle the address.
  3. 100 USDG settles
    transferFrom your Reward Vault, signed by the payout signer
  4. PAID ✓
    Confirmed on-chain and verified → receipt + payment.confirmed webhook

Set up in two lines

import { FomoPay } from "@fomopay/sdk";

const fomopay = new FomoPay({ apiKey: process.env.FOMOPAY_API_KEY });

// "@their_handle": the Fomo handle you're paying — every handle is a real account
await fomopay.send({ to: "@their_handle", amount: 100, asset: "USDG" });

send pays from your project's Reward Vault — a wallet you own that approved FomoPay's payout signer for a capped USDG allowance. The SDK attaches an idempotency key to every create call, so its retries can never pay twice. For end-to-end exactly-once, pass your own key derived from the event you are paying for (Idempotency).

At a glance

Base URL
https://fomopay.family/v1
Network
Robinhood Chain ("robinhood") — Ethereum L2, chain id 4663, gas in ETH.
Assets
USDG Global Dollar, 6 decimals, 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168 · ETH native, 18 decimals. There is no official USDC on Robinhood Chain.
Auth
Authorization: Bearer fp_live_… — live keys only: payments move real funds on mainnet. Scoped, hashed, shown once.
Format
JSON, snake_case keys, amounts as decimal strings ("100.5"), timestamps ISO 8601 UTC.
Request ids
Every response carries x-request-id; errors repeat it as error.request_id.

Start here

How a payment flows

  1. Type the @. You send a handle (@their_handle), an amount and an asset. No address.
  2. FomoPay verifies the identity. The handle resolves through FomoPay's identity adapter to a profile with a payout wallet FomoPay verified (wallet signature + identity proof). Anything else — unverified, no wallet, wrong network, suspended, unknown — is refused with a specific error, never paid “just in case”.
  3. The destination is snapshotted. The verified wallet, its verification version and time are frozen onto the payment. A wallet change afterwards never redirects it.
  4. Risk checks run. Limits, vault availability, recent wallet changes, look-alike handles and approval thresholds can hold or block a payment before anything moves.
  5. It settles on Robinhood Chain. A plain ERC-20 transferFrom (vault) or a transfer signed by the sender's own wallet (checkout), tagged with a 32-byte payment reference. FomoPay marks it CONFIRMED only after the chain confirms it and the transfer is verified against the snapshot.

Built for games: FomoRun

Replace “DM us your wallet” with the winner's handle. The idempotency key is derived from the round, so a retried job, a double-clicked admin button or a redeploy mid-payout cannot pay the winner twice.

reward-winner.ts
import { FomoPay } from "@fomopay/sdk";

const fomopay = new FomoPay({ apiKey: process.env.FOMOPAY_API_KEY });

// When a FomoRun round ends. No wallet collection: the handle is enough.
const winner = match.winner.handle; // the winner's Fomo handle, e.g. "@their_handle" — a real account

await fomopay.rewards.create({
  recipient: winner,
  amount: "500",
  asset: "USDG",
  reason: `FomoRun #${round.id}`,
  // same round → same payout, however often this code runs
  idempotencyKey: `FOMORUN_${round.id}_WINNER`,
});
Every handle is a real person

Identities here are live Fomo accounts: a payment goes to a real person's verified wallet on Robinhood Chain mainnet, and a confirmed transfer can't be reversed. @their_handle in these samples is a placeholder — put in the handle of the person you mean to pay, and try your integration with a small amount first (how).