Skip to main content

Integrate with Coinbase Agentic Wallet

The combination of Zapper and Coinbase Agentic Wallet creates a complete autonomous agent system: Zapper provides the data (onchain analytics, portfolio monitoring, signal detection) while the Agentic Wallet provides the execution (trades, transfers). Together, they enable autonomous workflows that neither can achieve alone.

Zapper resources are available to query and get paid for directly by the funds in your Coinbase Agentic Wallet. This page describes how to set up your Agentic Wallet with Zapper.

Don't have a Coinbase Agentic Wallet setup yet ? Set one up in 2 minutes here.

Use Zapper data in your Agentic Wallet

To enable your agent to use Zapper data in your agentic wallet, simply mention to your agent to use Zapper resources. Your agent will find those resources automatically in the x402 Bazaar (marketplace), and will pay per request with x402.

See Available Resources

Example prompt:

Show me Zapper resources available in the x402 bazaar.

Command run : npx awal@latest x402 bazaar search "zapper"

Example Agent Workflow

User prompt:

Check my agentic wallet portfolio. Keep it balanced to 60% ETH, 30% stables, 10% alts. 
Use Zapper for your onchain data.
Underlying actions done automatically
  1. Get portfolio totals (Zapper via x402)

    npx awal@latest x402 pay https://public.zapper.xyz/x402/portfolio-totals \
    -X POST -d '{"addresses":["AGENTIC_WALLET_ADDRESS"]}'

    Returns: Total portfolio = $100

  2. Get detailed token balances (Zapper via x402)

    npx awal@latest x402 pay https://public.zapper.xyz/x402/token-balances \
    -X POST -d '{"addresses":["AGENTIC_WALLET_ADDRESS"]}'

    Returns current allocation:

    • ETH: $40 (40%)
    • USDC: $20 (20%)
    • OP: $30 (30%)
    • DOGE: $10 (10%)
  3. Calculate required trades (Agent)

    • Target: 60% ETH ($60), 30% stables ($30), 10% alts ($10)
    • Current: 40% ETH ($40), 20% stables ($20), 40% alts ($40)
    • Needed: Buy $20 ETH, Buy $10 USDC, Sell $30 alts
  4. Execute rebalancing trades (Execution via Agentic Wallet)

    # Sell excess alts
    npx awal@latest trade 30 op usdc
    npx awal@latest trade 10 doge usdc

    # Buy ETH to target allocation
    npx awal@latest trade 20 usdc eth

Agent response:

Portfolio Rebalancing Complete

Before:
- ETH: $40 (40%)
- Stables: $20 (20%)
- Alts: $40 (40%)

After:
- ETH: $60 (60%) ✓
- Stables: $30 (30%) ✓
- Alts: $10 (10%) ✓

Transactions:
- Sold 30 USDC worth of OP
- Sold 10 USDC worth of DOGE
- Bought 20 USDC worth of ETH

Possible Usecases

  1. Whale Tracking & Copy Trading

    • Monitor specific wallets with /x402/transaction-history
    • Parse trades with /x402/transaction-details
    • Mirror positions automatically via npx awal trade
  2. Smart DCA With Momentum

    • Check token volume trends with /x402/token-ranking
    • Get current prices with /x402/token-price
    • Execute DCA only when onchain conditions are favorable via npx awal trade
  3. Social + Onchain Signal Trading

    • Monitor token social sentiment with /x402/token-activity-feed
    • Track real-time swap volume with /x402/general-swap-feed
    • Execute trades when both signals align via npx awal trade
  4. Holder Concentration Analysis

    • Analyze token distribution with /x402/token-holders
    • Check decentralization metrics before buying
    • Auto-buy only if concentration criteria met via npx awal trade