Documentation
Network configuration
Chain ids, RPC endpoints, explorers and contract addresses — and how to point the SDK, the API and a local devnet at them.
Networks
| Robinhood Chain Testnet | Robinhood Chain | |
|---|---|---|
| Chain id | 46630 | 4663 |
| Status in AgentID | Registrations, keys, signed activity | Read-only — no AgentID contracts or write flows |
| RPC | https://rpc.testnet.chain.robinhood.com | https://rpc.mainnet.chain.robinhood.com |
| Explorer | explorer.testnet.chain.robinhood.com | robinhoodchain.blockscout.com |
| Gas | ETH, ~0.01 gwei | ETH, ~0.02 gwei |
| ERC-8004 Identity Registry | 0x8004A818BFB912233c491871b3d84c89A494BD9e | 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 |
Robinhood Chain is an Arbitrum Nitro (Orbit) chain. Testnet ETH comes from the testnet faucet. Live RPC, contract and indexer health is on Network status.
Public RPC limits#
- About 100 requests per second; use your own RPC for heavy or parallel workloads.
- Roughly 30 minutes of historical state (not an archive node). Event logs are available for the full history; state reads at old blocks are not.
eth_getLogsaccepts at most 10,000,000 blocks per request. The SDK reads history in chunks of 9,999,999 blocks and halves a chunk when the node rejects the range.
Contract addresses
| Contract | Address (testnet) | Notes |
|---|---|---|
| ERC-8004 Identity Registry | 0x8004A818BFB912233c491871b3d84c89A494BD9e | Official ERC-1967 (UUPS) proxy |
| Registry implementation | 0x7274e874CA62410a93Bd8bf61c69d8045E399c02 | v2.0.0; verified build |
| AgentKeyRegistry | see Network status | AgentID extension, immutable |
| AgentActivityAnchor | see Network status | AgentID extension, immutable |
NEXT_PUBLIC_KEY_REGISTRY_46630, …) or the keyRegistry/activityAnchor/deployment options. Without them, key and anchor features throw NOT_CONFIGURED and the matching checks report NOT_CHECKED — never a pass.Configuring the SDK
One AgentID instance serves one chain and one registry. Unsupported chain ids throw UNSUPPORTED_CHAIN.
import { AgentID } from "@agentid/sdk";
const agentid = new AgentID({
chainId: 46630, // 46630 testnet · 4663 mainnet (read-only) · 31337 local
rpcUrl: "https://rpc.testnet.chain.robinhood.com", // default: the chain's public RPC
apiUrl: "https://agentid-beryl.vercel.app/api/v1", // needed by listAgents / publishActivity
timeoutMs: 10_000, // RPC + metadata requests
// registry, keyRegistry, activityAnchor, deployment, publicClient, ipfsGateway, fetch: optional overrides
});| Option | Default | Purpose |
|---|---|---|
| chainId | — | 46630, 4663 or 31337 |
| registry | official registry of the chain | ERC-8004 Identity Registry (required for 31337) |
| keyRegistry / activityAnchor | known deployment | AgentID extensions; null disables those features |
| deployment | — | A full deployment, e.g. parseDeploymentJson(deployments/<chainId>.json) |
| rpcUrl / publicClient | public RPC | Your own transport or viem PublicClient |
| apiUrl | — | AgentID API base incl. /api/v1 (listAgents, publishActivity) |
| ipfsGateway | https://ipfs.io/ipfs/ | Gateway for ipfs:// registration files |
| timeoutMs | 10000 | HTTP timeout for RPC and metadata requests |
Adding the network to a wallet
Chain id 46630 (hex 0xb626), name “Robinhood Chain Testnet”, currency ETH (18 decimals), RPC https://rpc.testnet.chain.robinhood.com, explorer https://explorer.testnet.chain.robinhood.com. The AgentID app offers to switch networks when your wallet is on another chain.
Local devnet
For development and automated tests, the monorepo runs Anvil as chain 31337 (“Local Devnet”) with the vendored, unmodified ERC-8004 registry and both AgentID contracts. It is never shown as Robinhood Chain.
# Local Postgres (:58600) and Anvil (:8645, chain 31337)
node scripts/stack.mjs up
# Deploy the vendored ERC-8004 registry + AgentKeyRegistry + AgentActivityAnchor to Anvil,
# then write deployments/31337.json
node scripts/chain-bootstrap.mjsimport { readFileSync } from "node:fs";
import { AgentID, parseDeploymentJson } from "@agentid/sdk";
const deployment = parseDeploymentJson(JSON.parse(readFileSync("deployments/31337.json", "utf8")));
const agentid = new AgentID({ chainId: 31337, deployment }); // RPC defaults to http://127.0.0.1:8645Server configuration
The API and indexer read their networks from the environment (see .env.example in the repository). Server-only values never carry a NEXT_PUBLIC_ prefix.
# Chains the indexer and API serve (comma list). 4663 is a read-only opt-in.
AGENTID_CHAINS=46630
RPC_URL_46630=https://rpc.testnet.chain.robinhood.com
RPC_FALLBACK_URLS_46630= # optional, tried when the primary fails or times out
KEY_REGISTRY_46630= # AgentID extension addresses (+ *_START_BLOCK_46630 to speed up backfills)
ACTIVITY_ANCHOR_46630=
# Browser side (public)
NEXT_PUBLIC_DEFAULT_CHAIN_ID=46630
NEXT_PUBLIC_KEY_REGISTRY_46630=
NEXT_PUBLIC_ACTIVITY_ANCHOR_46630=