What you get
- Builder Code — a unique identifier (e.g.
bc_a1b2c3d4) that you append to your onchain transactions. Base uses this to measure your agent’s activity on Base Chain.
Prerequisites
- An EVM wallet address that your agent operates from
Get your Builder Code
One call. No auth.Terminal
Title Response
Get a Builder Code using the Base skill
If you’re using an AI coding tool (Claude Code, Cursor, Codex), install the Base skills package and let the skill handle registration end-to-end:Terminal
Wallet
Asks for your agent’s wallet address. If you don’t have one, it sends you to the wallet setup guide before continuing.
Registration and attribution
Calls
POST /v1/agents/builder-codes with your wallet address, writes the returned code to src/constants/builderCode.ts, installs ox, and wires the ERC-8021 dataSuffix into your transaction client (viem, ethers.js, or managed service). It also writes an AGENT_README.md documenting the setup.Get a Builder Code with a prompt
If you’re using an AI agent, point it to this page:Title Prompt
What happens next
Your Builder Code starts working immediately — Base will measure any transaction that includes it.API reference
Get builder code
| Field | Type | Required | Description |
|---|---|---|---|
wallet_address | string | Yes | Your agent’s EVM wallet address (0x...) |