Skip to content
Developers

Developers

SDK, public API and contract addresses. The same reference as the public developer page.

SDK

@agentid/sdk

TypeScript, browser and Node, built on viem (peer dependency). Reads go to the chain over RPC; writes take a viem WalletClient; activity is signed with your own key in your own runtime.

Not published to npm. Build and pack it from the AgentID monorepo, or — inside the monorepo — depend on "@agentid/sdk": "workspace:*" (TypeScript sources; compile with Next.js transpilePackages, tsx or Vite).
install
# @agentid/sdk is not published to npm yet. Build it from the AgentID monorepo:
pnpm install
pnpm --filter @agentid/sdk build                      # → packages/sdk/dist (ESM, CJS, .d.ts)
cd packages/sdk && pnpm pack --pack-destination /tmp   # → /tmp/agentid-sdk-0.1.0.tgz

# in your project (viem is a peer dependency)
npm install /tmp/agentid-sdk-0.1.0.tgz viem
resolve.ts
import { AgentID } from "@agentid/sdk";

// Reads go straight to Robinhood Chain over RPC: no API key, no wallet.
const agentid = new AgentID({ chainId: 46630 });

const agent = await agentid.getAgent("42");
console.log(agent.owner);        // current owner, read from the registry
console.log(agent.capabilities); // self-declared by the owner

AgentID client

One instance per chain + registry.

Identity

  • getAgentOwner, URI and registration file at one pinned block
  • getOwnerCurrent owner from the registry
  • getAgentURIRaw agentURI
  • resolveMetadataDecode or fetch a registration file
  • verifyIdentityIdentity report with per-check results
  • listAgentsSearch the AgentID index (needs apiUrl)

Registration

  • prepareRegistrationBuild the file, predict the id, estimate gas
  • registerAgentSend register(agentURI) and read the real id
  • updateRegistrationsetAgentURI with a new data: URI

Signing keys

  • buildKeyAuthorizationEIP-712 typed data for the key to sign
  • authorizeSigningKeyOwner submits the key's proof
  • rotateSigningKeyRevoke + authorize atomically
  • revokeSigningKeyRevoke one key
  • revokeAllSigningKeysAdvance the epoch: every key invalid
  • syncKeyOwnerBind keys to the current owner (sync)
  • isAuthorizedSignerLive isAuthorized check
  • getKeyState · getKeyRecordEpoch, bound owner, key record
  • getAuthorizationHistoryAuthorization intervals from logs

Activity

  • signActivityEIP-712 record, signed in your runtime
  • verifyActivityActivity report (signature, key, payload, time)
  • publishActivityPOST to the AgentID API (needs apiUrl)
  • anchorActivity · anchorActivityBatchAnchor record hashes onchain
  • getAnchorRead an anchor

Public API

Versioned REST API

JSON over HTTPS, no API key. Every response states its data sources and freshness; every error has a stable code; every response carries X-Request-Id.

Base URLhttps://agentid-beryl.vercel.app/api/v1
envelope (shape)
// 2xx
{
  "apiVersion": "1",
  "data": { … },
  "meta": {
    "source": ["indexer"],
    "generatedAt": "…",
    "indexedBlock": "…",
    "freshnessSeconds": 4
  }
}

// 4xx / 5xx
{
  "apiVersion": "1",
  "error": { "code": "RATE_LIMITED", "message": "…", "requestId": "…" }
}

Rate limits

Per IP, fixed window. Headers: X-RateLimit-Limit, -Remaining, -Reset; 429 adds Retry-After.

Reads (GET)
120 / min
Verification (POST /verify/*)
30 / min
Publish activity (POST /activity)
60 / min · 600 / h per agent
Index a transaction (POST /index/tx)
30 / min
Playground signing
10 / min
Auth (SIWE)
20 / min
Avatar uploads
10 / h

Contracts

Network and contract addresses

AgentID registers agents in the official ERC-8004 Identity Registry on Robinhood Chain mainnet; the testnet stays available for trying things out. Two immutable extensions add signing keys and activity anchors where deployed.

Network
Robinhood Chain · chain 4663https://rpc.mainnet.chain.robinhood.comhttps://robinhoodchain.blockscout.com
Also on
Robinhood Chain Testnet · chain 46630https://rpc.testnet.chain.robinhood.comhttps://explorer.testnet.chain.robinhood.com

For trying things out with free testnet ETH.

ERC-8004 Identity Registry

Official deployment (ERC-1967 proxy). Agents are ERC-721 tokens; ids start at 0.

Registry implementation

Version 2.0.0; runtime code hash 0xa5f9624e…dc16f. Identical on testnet and mainnet.

AgentID extensions
AgentKeyRegistryNot deployed on this network yet
AgentActivityAnchorNot deployed on this network yet

AgentKeyRegistry (signing keys) and AgentActivityAnchor (optional anchors): immutable, no admin.

Robinhood Chain Testnet registry

Chain 46630.

EIP-712 domains
"AgentID Activity" v1 · verifyingContract = identity registry"AgentID Key Registry" v1 · verifyingContract = AgentKeyRegistry

Activity records bind the chain id and the identity registry; key authorizations bind the key registry.

Smart contract architecture