Skip to content

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 TestnetRobinhood Chain
Chain id466304663
Status in AgentIDRegistrations, keys, signed activityRead-only — no AgentID contracts or write flows
RPChttps://rpc.testnet.chain.robinhood.comhttps://rpc.mainnet.chain.robinhood.com
Explorerexplorer.testnet.chain.robinhood.comrobinhoodchain.blockscout.com
GasETH, ~0.01 gweiETH, ~0.02 gwei
ERC-8004 Identity Registry0x8004A818BFB912233c491871b3d84c89A494BD9e0x8004A169FB4a3325136EB29fA0ceB6D2e539a432

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_getLogs accepts 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

ContractAddress (testnet)Notes
ERC-8004 Identity Registry0x8004A818BFB912233c491871b3d84c89A494BD9eOfficial ERC-1967 (UUPS) proxy
Registry implementation0x7274e874CA62410a93Bd8bf61c69d8045E399c02v2.0.0; verified build
AgentKeyRegistrysee Network statusAgentID extension, immutable
AgentActivityAnchorsee Network statusAgentID extension, immutable
The SDK ships the official registry addresses. AgentID's extension addresses come from the built-in deployment table, environment overrides (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.

client.ts
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
});
OptionDefaultPurpose
chainId—46630, 4663 or 31337
registryofficial registry of the chainERC-8004 Identity Registry (required for 31337)
keyRegistry / activityAnchorknown deploymentAgentID extensions; null disables those features
deployment—A full deployment, e.g. parseDeploymentJson(deployments/<chainId>.json)
rpcUrl / publicClientpublic RPCYour own transport or viem PublicClient
apiUrl—AgentID API base incl. /api/v1 (listAgents, publishActivity)
ipfsGatewayhttps://ipfs.io/ipfs/Gateway for ipfs:// registration files
timeoutMs10000HTTP 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.

terminal
# 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.mjs
local.ts
import { 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:8645

Server 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.

.env.local
# 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=