Hermes: AI DeFi agent with ENS identity that fetches Uniswap quotes & executes via KeeperHub
Hermes is an autonomous DeFi agent that combines three pillars: onchain identity, intelligent routing, and reliable execution. The agent resolves its own ENS name (hermes-ai-agent.eth) to establish a verifiable onchain identity before doing anything else. It then calls the Uniswap API to fetch real swap quotes for token pairs on Unichain Sepolia, returning route data, price impact, and gas estimates. Finally it submits transactions through KeeperHub, which provides guaranteed execution with retry logic, gas optimization, and a full audit trail. An AgentRegistry smart contract deployed on Unichain Sepolia stores and verifies agent identities onchain, making every agent a named, traceable, verifiable actor rather than an anonymous script moving money.
Hermes is built with Node.js for agent orchestration and Solidity with Foundry for the smart contract layer. The AgentRegistry contract inherits from OpenZeppelin's Ownable and is deployed on Unichain Sepolia (chainId 1301). ENS resolution uses ethers.js v6 to resolve hermes-ai-agent.eth on Sepolia and read text records storing agent metadata. The Uniswap API integration uses axios to POST to the /v1/quote endpoint, returning live swap quotes for WETH to USDC. KeeperHub handles execution via their transfer API with Bearer token authentication, providing retry logic and audit logs that a raw RPC call cannot guarantee. The three modules — ens.js, uniswap.js, keeperhub.js — are composed in agent.js which orchestrates the full flow sequentially.

