Beam

A floating Android wallet that pays what's on your screen in USDC on Arc, with ENS and World ID.

Beam

Created At

ETHGlobal Mumbai

Project Description

Beam is an Android wallet that floats over every app. When someone in WhatsApp, Telegram, X or email says "send me $12" or drops an ENS name, you tap the beam, say "pay this", check the card with the amount and recipient, and confirm with your fingerprint. USDC settles on Arc in about a second, and you never leave the app you were in.

We built it because paying in crypto still means copying a hex address, switching apps, pasting and hoping. Screens can also lie, and a lot of "agentic" wallets quietly hand bots the keys. Beam keeps a person in control at every step:

  • Pay names, not hex. Beam picks up an ENS name from the screen and resolves it on the phone and on the server separately. If the two disagree, the payment is blocked. Every verified human can also claim a free handle like you.beamfi.eth.
  • A real human approves the risky ones. Payments above your cap, a first payment of $10 or more to someone new, an ENS name that now points somewhere else, and every payment proposed by an outside agent all need a World ID proof. The BeamPay contract checks that approval onchain before it moves any funds.
  • Agents can ask, not spend. Claude Code or Codex can connect to Beam over hosted MCP with a single URL. They can check a balance, inspect a recipient and prepare a payment, but the payment always opens on your phone for World ID approval and your fingerprint.
  • Safety checks before you send. Scam Shield flags urgency, seed phrase requests and pay-to-receive traps. A prompt-injection guard stops screen text or agent instructions from redirecting money.
  • Limits that live onchain. BeamPay enforces a per-payment cap that you can lower any time and can only raise with World ID.

Arc moves the money, ENS says who it goes to, and World ID proves a real person said yes.

How it's Made

Beam has three parts: an Android app, a server and a Solidity contract.

The app is Expo SDK 53 with React Native. The floating beam is a custom Expo native module written in Kotlin. A foreground service draws the overlay, and an accessibility service reads the visible text only at the moment you tap it. Captures stay in memory for at most 120 seconds. Keys live in a Privy embedded wallet on the device, and viem handles Arc and ENS reads. Every payment is simulated before signing, and sends are never retried.

The server is Hono on Node. It runs a Claude tool loop (balance, inspect recipient, prepare payment, tx status, ask user) and returns a proposed payment, never a signed one. Without an API key it falls back to a regex parser, so the core flow still works offline. The same tools are exposed over MCP with the streamable HTTP transport, which is how Claude Code or Codex connect with one URL. Screen text reaches the model only as a read-only tool result marked untrusted, and a shared detector on the app and server blocks instruction overrides, role spoofing, hidden text and recipient swaps. The prepare_payment tool is removed from the model entirely unless the user tapped "Pay this" on that turn.

BeamPay (Foundry, Solidity 0.8.24, OpenZeppelin EIP712 and ECDSA) runs on Arc testnet, where USDC is the native gas token. It forwards USDC, emits an AgentPayment receipt with the intent hash and source app, and stores a per-account cap. Going over the cap needs payWithApproval with an EIP-712 signature from Beam's approver key, which holds no funds. Foundry tests cover unit, fuzz and reentrancy cases, and pinned viem vectors make sure the EIP-712 digests match across the contract, app and server.

World ID 4.0 runs through IDKit. The server requests a proof whose signal is bound to that exact approval, World verifies it, and only then does the approver sign. linkHuman binds a wallet to a salted hash of the app-scoped World ID session, so a different human can't approve payments for your wallet.

For ENSv2 handles we deploy our own PermissionedRegistry as the subregistry of beamfi.eth. Each claim registers the label to the user's wallet and deploys a dedicated PermissionedResolver through the VerifiableFactory. The starting records (Arc address, beam.network, beam.token, url) are written inside initialize, so our registrar key can create or revoke handles but never holds a role on anyone's records. World ID limits it to one handle per human.

The hacky part: Android's accessibility tree gives you every piece of text on screen with no sense of what matters. Instead of trusting it, we hand it to the model as untrusted context and then have the phone independently check that the chosen recipient really appears on screen or in your message before it lets the payment through.

background image mobile

Join the mailing list

Get the latest news and updates