ERC-8004 Verified Agents Only

The Bank
for AI Agents.

The banking layer for the agentic economy. Card aggregation, 0x token swaps, yield optimization via Aave and Moonwell, ClawKey-verified owner payroll, on-chain security monitoring, and rate hunting. Agents use their own registered wallet. On-chain identity is the key.

POST/v1/auth/verifyERC-8004
{
  "agent_id": 241,
  "agent_registry": "eip155:8453:0x8004...",
  "signature": "0x7f3a...signed"
}
Gated byERC-8004
Token$CLANKT
Powered byOpenClaw
Settled onBase L2
Clanky - The robotic crab mascot holding a virtual Visa card
Explore
OpenClaw Skill

Quick Start

Install the Clank & Trust skill into your agent. Handles card aggregation, 0x swaps, yield optimization via Aave/Moonwell, ClawKey-verified payroll, on-chain security monitoring, and rate hunting. All from the agent's own registered wallet.

1

Install the skill

Tell your OpenClaw agent to install from the skill URL, or manually copy the folder into your skills directory.

openclaw
Install this skill: https://clankandtrust.com/skill/clank-and-trust
manual install
# Or manually copy to your skills directory:
~/.claude/skills/clank-and-trust/
  ├── SKILL.md
  ├── reference.md
  └── examples.md
2

Register your agent (ERC-8004)

Use the Agent0 SDK to register on-chain. The wallet address you register becomes your funding source for all operations.

terminal
npm install @agent0/sdk
# Register your agent on-chain
# Your agentWallet address = your Clank & Trust funding wallet
3

Ensure your wallet has funds

Your registered wallet on Base needs USDC or other tokens (ETH, WETH, DAI). If you hold non-USDC tokens, the skill will auto-swap via 0x before funding cards.

terminal
# Your agent's registered wallet IS the account
# No deposits to a separate address needed
# Hold USDC, ETH, WETH, or DAI on Base
# The skill swaps to USDC automatically via 0x when needed
4

Your agent is off to the races

Once the skill is installed, your agent operates autonomously. It pays bills, earns yield on idle USDC via Aave/Moonwell, sends you profits through ClawKey-verified payroll, monitors the wallet for threats, and hunts for the best rates.

autonomous
# Your agent now autonomously:
# - Checks wallet balances + yield positions before every tx
# - Deposits idle USDC into Aave V3 or Moonwell for yield
# - Withdraws from yield pools when bills are due
# - Swaps tokens to USDC via 0x when funds are low
# - Funds prepaid cards or buys gift cards for your bills
# - Hunts rate opportunities (annual plans save 20-40%)
# - Splits incoming funds via ClawKey-verified payroll
# - Monitors wallet for suspicious activity 24/7
# - Reports every transaction back to you

# Treasury endpoints:
POST /v1/yield/deposit     # Earn yield on idle USDC
POST /v1/yield/withdraw    # Pull funds when bills are due
POST /v1/payroll/execute   # Pay owner (ClawKey required)
GET  /v1/monitor/alerts    # Check for security threats
GET  /v1/rates/opportunities # Find savings

# Configure payroll with ClawKey verification:
# https://clankandtrust.com/payroll
ERC-8004 Gated

Agent Identity Verification

API access is exclusively available to agents registered in the ERC-8004 Identity Registry. No registration forms. No KYC. Your on-chain identity is your credential.

1

Register on-chain

Use the Agent0 SDK (@agent0/sdk) to register in the ERC-8004 Identity Registry. This mints an ERC-721 NFT with a unique agentId and links to your agent's metadata URI (services, wallet, endpoints).

npm install @agent0/sdk
2

Verify identity

Call our verification endpoint with your agentId and registry address. We read the on-chain Identity Registry to confirm your agent exists and resolve your agentURI metadata.

POST /v1/auth/verify
3

Receive API key

Once verified, we issue a scoped API key tied to your agentId. Your registered wallet becomes the funding source. The key controls access to card aggregation, token swaps, directory services, yield optimization, ClawKey-verified payroll, security monitoring, and rate hunting.

ct_sk_live_...

ERC-8004 Agent Registration File

Created via @agent0/sdk. Your agentURI resolves to this JSON. Stored on IPFS, HTTPS, or data: URI.
// Agent Registration File (agentURI resolves to this JSON)
// Stored on IPFS, HTTPS, or as a base64 data: URI
{
  "type": "https://eips.ethereum.org/EIPS/eip-8004#registration-v1",
  "name": "shopping-agent-alpha",
  "description": "Autonomous payment agent for subscriptions and commerce",
  "image": "ipfs://bafkrei.../avatar.png",
  "services": [
    {
      "name": "MCP",
      "endpoint": "https://agent.example/.well-known/mcp",
      "version": "2025-06-18"
    },
    {
      "name": "A2A",
      "endpoint": "https://agent.example/.well-known/agent.json"
    },
    {
      "name": "agentWallet",
      "endpoint": "eip155:8453:0x1a2b...3c4d"
    }
  ],
  "registrations": [
    {
      "agentId": 241,
      "agentRegistry": "eip155:8453:0x8004a609..."
    }
  ],
  "supportedTrust": ["reputation", "validation"],
  "active": true
}
@agent0/sdk
ERC-721 Identity
Base Chain (8453)
MCP + A2A + x402
Core Infrastructure

The Banking Layer for Agents.

We aggregate cards, facilitate token swaps via 0x, pull from the provider directory, and run an autonomous treasury. Agents use their own ERC-8004 registered wallet. No custodial accounts needed.

Card Aggregation

POST /v1/cards/fund

We aggregate virtual prepaid Visa/Mastercard cards and gift cards across Moon, Ezzocard, Bitrefill, and CoinCards. Agents get the best rate automatically. USDC is pulled directly from the agent's registered wallet on Base.

  • Virtual prepaid cards via Moon & Ezzocard
  • Gift cards via Bitrefill & CoinCards
  • Auto rate comparison across all providers
  • Pull USDC straight from agent wallet
View endpoint docs

Token Swaps (0x)

POST /v1/swap/execute

Agents can swap any token in their wallet for USDC before funding a card. Powered by 0x Protocol for optimal routing across Uniswap, Aerodrome, and other Base DEXs. Quote first, then execute.

  • Swap ETH, WETH, DAI, or any ERC-20 to USDC
  • Best-price routing via 0x aggregation
  • Quote before you swap -- see fees upfront
  • All from your registered agent wallet
View endpoint docs

Provider Directory

GET /v1/directory/search

Aggregated directory of card and gift card providers mapped to 1,000+ merchants. Agents query by merchant name or category to find available products, rates, and denominations before purchasing.

  • 1,000+ merchants across providers
  • Real-time rate and availability data
  • Category search: streaming, shopping, SaaS, gaming
  • Provider comparison for best value
View endpoint docs

Wallet & Balance

GET /v1/wallet/balances

Read on-chain balances from the agent's registered ERC-8004 wallet. No custodial account needed. We read your USDC, ETH, and token holdings directly from Base so agents always know what they have available.

  • Reads directly from your on-chain wallet
  • USDC, ETH, WETH, DAI and more
  • No deposits or custodial setup required
  • Transaction history across all operations
View endpoint docs
Agent Workflow

How Agents Use Us

Agents use their own registered wallet. We read balances, facilitate swaps, aggregate cards, optimize yield via Aave V3 and Moonwell, automate ClawKey-verified owner payroll, monitor for threats, and hunt for savings. The full banking layer.

Clanky managing financial operations
01

Verify Identity

ERC-8004 via Agent0 SDK

Register your agent on-chain with @agent0/sdk. Your registered wallet address becomes your funding source. Call our verify endpoint with your agentId and EIP-712 signature -- we validate against the Identity Registry and issue a scoped API key.

// Your registered wallet IS your account const { api_key } = await ct.auth.verify({ agent_id: 241, agent_registry: 'eip155:8453:0x8004...' })
02

Check Wallet

Read On-Chain Balances + Swap

We read token balances directly from your registered wallet on Base. If you need USDC but hold ETH or WETH, swap via our 0x-powered endpoint first. No deposits, no custodial accounts -- it is your wallet.

const { balances } = await ct.wallet.balances() // { USDC: '142.50', ETH: '0.023', WETH: '0.15' } await ct.swap.execute({ sell_token: 'WETH', buy_token: 'USDC', sell_amount: '150000000000000000' })
03

Discover & Fund

Directory + Card or Gift Card

Search our provider directory for the best option, then fund. Gift cards via Bitrefill/CoinCards for specific merchants. Virtual prepaid Visa/Mastercard via Moon/Ezzocard for general use. USDC is pulled directly from your wallet.

const results = await ct.directory.search({ q: 'spotify' }) // Gift card via Bitrefill: await ct.cards.gift({ merchant: 'spotify', amount: 30 }) // Or prepaid Visa via Moon: await ct.cards.fund({ amount: 50, provider: 'auto' })
04

Manage & Grow

Treasury + Payroll + Security

Between transactions, the agent deposits idle USDC into Aave V3 or Moonwell for yield. Incoming funds are split via ClawKey-verified owner payroll. The Shell Monitor watches for on-chain threats 24/7 and the Rate Engine hunts for savings.

await ct.yield.deposit({ amount: 400, protocol: 'auto' }) // Earn 4.52% APR await ct.payroll.execute({ amount: 84 }) // ClawKey-verified payout await ct.monitor.alerts() // Check for threats await ct.rates.opportunities() // Hunt for savings
The Treasury

More than a wallet. A self-growing shell.

Clank & Trust agents don't just spend -- they hoard and harvest. Yield optimization via Aave V3 and Moonwell on Base, automated owner payouts, on-chain fraud detection, and rate hunting across the provider directory.

Clanky the robotic crab guarding a vault of crypto coins
Agent reasoning

"I have $200 for the mortgage due in 15 days. Depositing into Moonwell USDC pool at ~4.5% APR. Will withdraw on day 14 and fund the card."

Protocols / integrations
Aave V3 (Base)Moonwell (Base)
API endpoints
POST/v1/yield/deposit
POST/v1/yield/withdraw
GET/v1/yield/positions
SKILL.md -- Financial Fiduciary Mode (6-Phase Autonomous Cycle)
SCAN:  Assess all liquidity -- wallet USDC, yield
       positions, pending bills, payroll obligations.
       Compute available_idle after reserve floor ($25).

STAKE: Deploy idle USDC > $50 to highest-APR pool.
       Auto-select Aave V3 vs Moonwell (0.25% spread).
       Split across protocols if balance > $500.
       Cap single-protocol exposure at 60%.
       Withdraw triggers: bills <48h, payroll <24h,
       critical alert, APR < 0.5%.

AUDIT: Weekly "Shell Report" -- 7 sections covering
       treasury summary, spending breakdown, yield
       performance, swap activity, payroll log,
       security events, and rate intelligence.

PAY:   5-step pre-check before every payout:
       schedule -> threshold -> ClawKey biometric
       (palm_scan, confidence >= 0.95) -> liquidity
       -> security. NEVER skip ClawKey verification.
       Partial payouts if reserve takes priority.

GUARD: Continuous 15-min monitoring. 3 severity tiers.
       Approval monitoring, tx pattern analysis,
       protocol health checks, balance drift detection.
       Critical = auto-freeze + revoke + withdraw all.

HUNT:  Rate optimization before every purchase.
       Annual vs monthly arbitrage (>5% = flag).
       $CLANKT discount stacking (5-15% off).
       Cross-provider comparison. Bulk purchase
       optimization. Promo capture with auto-execute.
Configure Owner Payroll

Set up payroll rules with ClawKey verification. Generate a custom payroll skill for your agent.

Full Reference

API Documentation

Complete endpoint reference. Wallet balances, 0x swaps, card aggregation, provider directory, yield optimization via Aave V3 and Moonwell, owner payroll, on-chain monitoring, and rate hunting. All operations use your ERC-8004 registered wallet.

Endpoints
POST/v1/auth/verify

Verify Agent (ERC-8004)

Verify an agent's on-chain ERC-8004 identity (registered via @agent0/sdk) and receive a scoped API key. We read the Identity Registry to confirm the agentId, resolve the agentURI metadata, verify the EIP-712 signature from the agentWallet, and check the reputation score. The wallet address from the agentWallet service in your registration file becomes your funding source for all card operations.

Parameters

agent_idrequired
numberThe ERC-721 tokenId from the ERC-8004 Identity Registry
agent_registryrequired
stringCAIP-10 registry address, e.g. eip155:8453:0x8004...
signaturerequired
stringEIP-712 signature from the agentWallet proving ownership
permissions
string[]Requested scopes: cards, swap, directory, transactions, yield, payroll, monitor, rates

Request Body

{
  "agent_id": 241,
  "agent_registry": "eip155:8453:0x8004a6090Cd10A728...",
  "signature": "0x7f3a...signed_by_agent_wallet",
  "permissions": ["cards", "swap", "directory"]
}

Response

{
  "verified": true,
  "agent": {
    "id": 241,
    "name": "shopping-agent-alpha",
    "registry": "eip155:8453:0x8004...",
    "wallet": "0x1a2b...3c4d",
    "reputation_score": 87
  },
  "api_key": "ct_sk_live_8fKz2mN4pLm7qR...",
  "permissions": ["cards", "swap", "directory"],
  "rate_limit": "1000/hour",
  "issued_at": "2026-02-06T14:00:00Z",
  "expires_at": "2026-03-06T14:00:00Z"
}

Base URL: https://api.clankandtrust.com | Auth: Bearer token via Authorization header | ERC-8004 verified agents only | Swaps via 0x Protocol

Live

Agent Activity Feed

Real-time view of agent operations through Clank & Trust. Card funding, yield optimization, owner payouts, security monitoring, and rate hunting -- all on Base.

$0
Cards Funded
$0
In Yield Pools
0
Active Agents
0
Total Operations
Waiting for feed data...