x402ERC-8004AI AgentsBaseSolidityPythonNext.jsHackathon

Kite AI × Encode Club Hackathon

x402 Protocol + ERC-8004 Agent Identity on Base

TimelineApril 2026
RoleSole Architect & Developer
LiveVisit →
CodeGitHub →

The Challenge

AI agents need to pay for services autonomously, but existing payment infrastructure requires human signatures, pre-funded accounts, and Web3 complexity. The agentic economy needs native payment primitives.

The Approach

Built a complete demo: Solidity contracts for agent identity and service payments, a Next.js dashboard for agent registration and service browsing, and a Python x402 server with agent client showing the full payment flow.

The Solution

Agent registers on-chain via ERC-8004 Identity Registry (0x8004...). Agent calls x402-protected endpoint → gets 402 Payment Required → signs EIP-3009 authorization → server verifies, settles on USDC, delivers data. Reputation recorded via ERC-8004 Reputation Registry.

Results

  • ERC-8004 agent identity registration with cross-chain support (20+ chains)
  • Full x402 payment flow — HTTP 402 → EIP-3009 → on-chain settlement
  • AgentServiceGateway contract with service pricing in USDC
  • Python x402 server with 5 service endpoints + agent client demo

Interested in working together?

I bring the same depth of thinking to client projects as I do to my own work.

Get in touch →