DEMO LINK at the bottom IN THE COMMENTS
Inspiration
When you send someone money for something, the reason gets lost the moment it leaves your hands. You send $45 for a snow shovel, and two days later it's pizza. We wanted money with a purpose: money that stays locked to exactly what you meant it for, the items you choose, at the store you pick, for the person you send it to.
What it does
Earmark has two parts: a network that any store in the world can join, and a payment layer built on Circle's USDC and Arc that keeps money locked to its purpose.
Part 1: Any store, anywhere, can accept Earmark
Earmark isn't tied to one shop or one country. Any store can join with our plugin:
- A checkout button (EarmarkPayButton) that goes on their checkout page
- A small signer (earmarkSigner) on their own server that signs the exact item and price
The store's key never leaves its own server, and setup takes under an hour through our /stores page. Because payments are in USDC, a store in Texas, Mexico, or anywhere else gets paid in the same digital dollars, with no card network and no currency conversion. Someone in one country can send money that's locked to a specific item at a store in another.
Hartwell Supply, our demo store, is fully separate from Earmark, with its own website, server, and key. It connects only through the plugin, exactly like any real store would.
Part 2: Money with a purpose, on Circle and Arc
- Real dollars: Gifts are USDC, Circle's stablecoin, not points or store credit.
- Only dollars: Gas on Arc is paid in USDC too, so users never need a separate token.
- Fast: Arc's fast finality makes checkout feel like tapping a card.
- Enforced on chain: The Earmark smart contract on Arc holds the money and checks every rule itself: the right item, the right store, the right person. Not even our website can spend it on something else.
Getting on Arc is easy Most people have never used crypto, and that's who Earmark is built for. There's no wallet to set up, no seed phrase, and no gas token to buy. Everything you see is in dollars. People who already have a wallet can connect MetaMask instead. Every gift sent brings a new person onto Arc holding USDC, and every store that joins brings a new merchant accepting it.
How it works
- Send: Maya types "Send Alex $45 for a snow shovel at Hartwell Supply." A Claude agent finds Alex, the store, and the real price. She approves, and the USDC is locked in the contract on Arc.
- Notify: A QuickNode Stream watches the contract, so Alex is notified the moment the gift is on chain.
- Spend: Alex taps "Pay with Earmark gift." The store signs the exact item, and the contract checks it before paying the store.
- Change: The leftover goes straight to Alex ($10 or less; more goes back to Maya).
- Wrong item: A drill gets refused, by both the checkout and the contract.
- Never lost: An ElevenLabs voice agent reminds Alex before the gift expires, in English or Spanish. If he never uses it, Maya gets a full refund after 30 days.
How we built it
- Smart contract (Solidity, Foundry, OpenZeppelin). Earmark.sol on Arc testnet holds the USDC and enforces every rule on chain:
- Only this item: the store signs an order for that exact item (an EIP-712 signature).
- Only this store: the signature must come from the store's registered signer.
- Only this person: only the receiver can spend the gift.
- Other rules: the price can't be more than the gift, each gift and each order can be used only once, gifts expire after 30 days, and the change is split on chain.
- Tests: 34 Foundry tests, including a fuzz test that runs the change split 1,000 times with random inputs.
- Arc + USDC. Gifts are real USDC, and Arc's gas is also paid in USDC, so people only ever hold dollars. Arc's fast finality makes checkout feel like a card tap.
- Frontend: React, Vite, TypeScript, Tailwind, GSAP + ScrollTrigger and Lenis for the scroll story on the landing page, and viem to talk to the blockchain.
- Backend: Node and Express. It runs:
- the Claude send agent, with tools for contacts, the store directory and the store's catalogue
- live notifications to the browser (server-sent events)
- the reminder job
- the demo-account signer, which only signs Earmark transactions and is capped at $1
- QuickNode Streams. A Stream on Arc testnet is filtered to the contract's three events (GiftCreated, GiftRedeemed, GiftRefunded) and sends them to a verified webhook. Every notification reflects what actually happened on chain, even when the transaction came from the store popup or the voice agent.
- ElevenLabs.
- A conversational voice agent that knows the person's name, the amount, the item and the days left. "Call me now" runs it in the browser with a short-lived token.
- Phone calls through ElevenLabs' Twilio integration are built and only need a phone number.
- The sample call on the landing page uses ElevenLabs text-to-speech with timestamps, so the transcript types in sync with the audio, in English or Spanish.
- Voice replies use ElevenLabs Speech-to-Text (Scribe), which detects the language before Claude translates it.
- earmark-plugin. A reusable package any store can install. Hartwell Supply is a fully separate store, with its own frontend, backend and private key, and it talks to Earmark only through the plugin.
- Hosting: Railway, with Earmark and Hartwell as separate services.
Challenges we ran into
- Keeping the browser out of the trust chain. Prices come only from the store's server-signed catalogue, never from the cart in the browser. The contract also rebuilds the signed order from the item stored in the gift, so a signature for any other item fails.
- Our own story broke the first rule. The $5.02 change in our example was over the $5 change limit, so we raised the limit to $10 and tested both sides of it.
- Living on a testnet budget. With about 20 test USDC, we set live prices to about 1/100 of the story (a $0.45 gift and a $0.40 shovel) so the demo can run many times.
- Too many Mayas. Wallets made in each browser created a new "Maya" on every device. We replaced them with one shared Maya and one shared Alex, signed by the server, limited to Earmark transactions and capped at $1.
- Getting the QuickNode filter right, so the server receives a few small, already-decoded events instead of every block.
Accomplishments that we're proud of
- The whole flow works end to end on Arc testnet with real USDC: send, notify, refuse the wrong item, buy the right one, change to the receiver, refund.
- The rules are enforced by the contract itself, not just the website.
- A real plugin and a separate store show that any shop can add Earmark. It isn't a one-off demo.
What we learned
- How EIP-712 signatures work end to end, signed with viem and checked in Solidity.
- How much simpler payments get when gas is paid in the same dollars being spent.
- How to build event-driven notifications with QuickNode Streams.
- How to design a voice agent that helps without ever holding the keys.
What's next for Earmark
- A real Twilio number for reminder phone calls.
- More stores through the plugin, and categories ("any textbook at this bookstore") instead of a single item.
- Recurring earmarks, like a monthly grocery budget.
- Mainnet USDC.
Built With
- anthropic-api
- arc
- circle
- claude
- eip-712
- elevenlabs
- express.js
- foundry
- gsap
- lenis
- metamask
- node.js
- openzeppelin
- quicknode
- quicknode-streams
- railway
- react
- solidity
- tailwindcss
- typescript
- usdc
- viem
- vite
- webauthn