PayAgent

Chat to pay — AI handles the rest. No chain switching, no DEX, no gas math.

PayAgent

Created At

Open Agents

Project Description

Pay Anyone. Just Chat. AI Handles the Rest.

PayAgent is an intent-based AI agent for seamless multi-chain crypto payments. You type what you want to do in plain language, and the agent handles chain selection, address resolution, gas estimation, and token swaps automatically — no bridges, no chain switching, no wrong tokens.

Web3 payments are still broken in three ways:

  • Chain complexity: you have to pick the right network and manage gas yourself
  • Identity gaps: your friend has an ENS name, but you need a raw 0x address
  • Wrong token: you have ETH, they want USDT — that's 3 manual steps before you can even pay

PayAgent eliminates all of them. Key highlights:

  • Natural language intent: describe your payment in plain text — AI parses intent and decides the full execution path automatically
  • Multi-chain parallel scanning: balances queried across 6 chains simultaneously, routed to the lowest gas option
  • Auto-swap via Uniswap: agent fetches a quote and builds the swap + transfer sequence if you lack the target token
  • Live AI reasoning stream: every decision step streams to the UI in real time — no black box
  • Human-in-the-loop by design: AI builds unsigned calldata only, you always confirm in your own wallet
  • Multi-turn conversations: session context remembered per wallet address

Before any transaction is sent, a Decision Card surfaces the recipient, chain, amount, and full cost breakdown so you know exactly what you are signing.

How it's Made

Built with AI model (function calling), viem + Alchemy (multi-chain RPC), Uniswap Trading API, ENS resolution, wagmi + ConnectKit (wallet), and a Node.js SSE backend.

The agent core is a function-calling loop where the AI model decides at runtime which tools to invoke and in what order — no hardcoded payment flow. For example, "send 50 USDT to alice.eth" with no USDT triggers: resolveIdentity → getBalances → getSwapQuote → buildSwapTx, skipping createTransaction entirely.

The 7 tools available to the model are:

  • resolveIdentity (ENS → 0x address)
  • getBalances (multi-chain parallel balance query)
  • selectChain (lowest-gas routing)
  • estimateGas (including L2 L1 data fees)
  • createTransaction (unsigned ERC-20 / native ETH calldata)
  • getSwapQuote (Uniswap EXACT_OUTPUT quote with 30s cache)
  • buildSwapTx (assembles full swap + transfer sequence)

Every tool call emits an SSE event, rendering each reasoning step live on it. selectChain fans out gas price queries across all chains in parallel, factoring in L1 data fees on Optimism, Base, and Arbitrum.

For Uniswap integration, getSwapQuote uses EXACT_OUTPUT mode — the agent specifies exactly how much USDT the recipient receives, and Uniswap back-calculates the required ETH input. All transactions are returned as unsigned calldata; the wallet signs each one in sequence, and the server never holds private keys.

background image mobile

Join the mailing list

Get the latest news and updates