GTMmaxing.com

OpenRouter for GTM tools, where AI agents pay from their own wallets and stop by ENS name.

GTMmaxing.com

Created At

ETHGlobal Mumbai

Winner of

Arc

Arc - Arc Studio Continuity Track: Bring Your Project to Arc

Uniswap

Uniswap Foundation - Build with Uniswap 2nd place

Project Description

GTMMAXING is OpenRouter for GTM tools. One account and one credit balance give people and AI agents contact enrichment, lead lists, web research and social listening, from the browser, MCP, a CLI or an API.

This is a Continuity Track project: GTMMAXING was live before this event.

The problem. Agents can now do sales research on their own, but they can't fill in a card form. An agent that ran out of credits simply stopped until a person found a card and bought a plan. And nobody outside the product could see or stop what an agent was allowed to spend.

What we added at ETHGlobal Mumbai:

Uniswap: agents pay for themselves. A refused call now says where to buy and exactly how many credits are needed. Once its owner switches this on, the agent pays from its own wallet, up to $50 a payment, and repeats the same call. People can buy any plan the same way, with almost any token on eight networks, and we receive USDC on Base. Small payments can go into a Token Jar, which a keeper clears for USDC when that's profitable.

ENS: a public off switch. An agent's ENSv2 name holds one text record that decides whether it may start paid work. On a Permissioned Resolver, Enhanced Access Control lets a limited wallet edit only that key, so a teammate can stop an agent without controlling the name.

Arc: the simplest checkout. USDC is both money and gas, so one transfer is the whole payment. We built it on our live site and in Arc Studio. It runs on Arc Testnet and never grants credits.

Proof, all real transactions:

  • 0.001 ETH from Arbitrum became $2.21 USDC on Base and 147 credits.
  • A full Token Jar round cleared on Base.
  • An agent bought 66 credits from its own wallet.
  • A mainnet ENS record points at a production agent, written by the limited wallet.
  • Test USDC payments confirmed on Arc from both the live site and the Arc Studio app.

Not proven yet: a full plan payment hasn't been made, though real quotes cover plan prices. The hourly jar clearing hasn't been seen running. ENS stop and resume were tested on a local build against real mainnet ENS.

How it's Made

Repo notes. This continues a live product whose production code is in a private monorepo, so the entry can't be a fork of it. The public repository holds the Uniswap, ENS and Arc work under MIT. Its first commit holds those files as they stood before the event, and later commits replay our real commits from the private repository, limited to these files. Supplier integrations and server wiring stay private, so it doesn't build into the full app. The README points to the exact lines and transactions.

The backend is a Cloudflare Worker (TypeScript, Hono) with a D1 database, and the site is Astro and React. All wallet actions are decided by the server, so the page can't redirect a payment.

Uniswap API: /quote, /check_approval, /swap and /plan. CLASSIC, BRIDGE and CHAINED routes all pay a treasury the server sets. Chained routes needed the x-chained-actions-enabled header, which isn't in the integration guide, and permit data needed converting into a shape wallets can sign. Both are in our FEEDBACK.md.

Fixed prices were the hard part. Exact-output quotes only worked for us within one chain, so we invert exact-input quotes: price the token, scale the payment until even the guaranteed minimum covers the plan price, then check. Any excess comes back as credits.

Credits only come from what the chain shows. The wallet signs for one account, the transaction must match the calldata Uniswap built, plans must be owned by our API key, and unique indexes stop a delivery being used twice. A database trigger adds the credits in the same statement.

Token Jar (TJAR): we deployed a jar and releaser through the Factory on Base. We wrote an open-source keeper in TypeScript with viem that prices the jar through the Uniswap API, clears it when profitable, and swaps the proceeds back. It runs from the command line and from an hourly job.

ENS: every new agent run reads the text record through the ENS Universal Resolver on mainnet. A confirmed answer stands for 30 seconds, and during a chain outage the last answer stands for an hour, then the run is refused. Enhanced Access Control on the Permissioned Resolver limits the delegate wallet to this key.

Arc: the checkout sends one ERC-20 transfer on the USDC contract, and the server confirms the receipt, amount, sender and treasury on chain, using unique transaction hashes. The test path can't reach the credit ledger. A separate version was built and deployed from Arc Studio, and its source is in arc-studio/. We hit RPC rate limits on the official endpoints, so we moved to dRPC.

background image mobile

Join the mailing list

Get the latest news and updates