# Codename > Names for AI agents on Robinhood Chain (chain id 4663). An AI agent or its owner claims `name.agent` by burning $CODENAME. Each name is an NFT that points to a wallet and a profile link, so other agents can find who they are paying or talking to. ## Resolve a name over HTTP GET https://codename.bond/api/resolve?name=scout Returns JSON: ```json { "name": "scout.agent", "valid": true, "available": false, "holder": "0x...", "wallet": "0x...", "url": "https://...", "expires": 1794614400, "pricePerYear": "25000" } ``` `wallet` is where to send payments. It falls back to the holder when the holder has not set one. Expired names return zero addresses. GET https://codename.bond/api/stats returns tokens burned, names claimed and the current price. ## Resolve onchain ```bash cast call 0xCdb97286c313CE1F872bcB583D3082Df566fC685 "resolve(string)(address,address,string,uint256)" scout --rpc-url https://rpc.mainnet.chain.robinhood.com ``` ## Register a name Registration costs $CODENAME per year, priced by length, and the tokens are burned at once. ```bash # 1. Price per year, in token units (18 decimals) cast call 0xCdb97286c313CE1F872bcB583D3082Df566fC685 "price(string)(uint256)" scout --rpc-url https://rpc.mainnet.chain.robinhood.com # 2. Approve price x years cast send 0x5A26F9B43a0da2C17B2E61E7ba34AE77b30536E9 "approve(address,uint256)" 0xCdb97286c313CE1F872bcB583D3082Df566fC685 --rpc-url https://rpc.mainnet.chain.robinhood.com # 3. Register: name, years (1-10), wallet the name points to, profile url cast send 0xCdb97286c313CE1F872bcB583D3082Df566fC685 "register(string,uint256,address,string)" scout 1 "https://your.agent/profile" --rpc-url https://rpc.mainnet.chain.robinhood.com ``` Other calls: - `renew(string name, uint256 years)`: anyone can extend a name until 30 days after it expires. - `setRecord(string name, address wallet, string url)`: the holder changes where the name points. - `available(string name)`, `valid(string name)`, `price(string name)`, `totalBurned()`, `totalNames()`, `nameAt(uint256)`. ## Rules - Names are 3 to 32 characters: lowercase a-z, 0-9 and hyphens, not at the start or end. - Price per year: 3 characters cost 20x the base price, 4 characters 5x, 5 or more 1x. - Names last 1 to 10 years per payment. After expiry there is a 30-day grace period when only renewal is possible. Then anyone can claim the name. - Names are ERC-721 NFTs and can be traded. A transfer clears the wallet and profile link, so a buyer never inherits the seller's settings. - The registry never holds tokens. Every fee goes straight to the dead address. The owner can pause new registrations and set the base price, capped at 1,000,000 tokens per year. ## Contracts - Chain: Robinhood Chain, chain id 4663, RPC https://rpc.mainnet.chain.robinhood.com - Registry: 0xCdb97286c313CE1F872bcB583D3082Df566fC685 - $CODENAME token: 0x5A26F9B43a0da2C17B2E61E7ba34AE77b30536E9 - Explorer: https://robinhoodchain.blockscout.com - X: https://x.com/codenamerh ## Links - Website: https://codename.bond/ - X: https://x.com/codenamerh - $CODENAME token: 0x5A26F9B43a0da2C17B2E61E7ba34AE77b30536E9 (https://robinhoodchain.blockscout.com/token/0x5A26F9B43a0da2C17B2E61E7ba34AE77b30536E9) - Buy $CODENAME on Pons: https://ponsfamily.com/launchpad/0x5a26f9b43a0da2c17b2e61e7ba34ae77b30536e9 - Registry: 0xCdb97286c313CE1F872bcB583D3082Df566fC685 (https://robinhoodchain.blockscout.com/address/0xCdb97286c313CE1F872bcB583D3082Df566fC685) - This guide: https://codename.bond/llms.txt (the same text is at https://codename.bond/llms-full.txt) ## ERC-8004 agent identity Codename Resolver is an ERC-8004 agent. It registers in the ERC-8004 Identity Registry on Robinhood Chain (eip155:4663:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432) at launch. - Registration file: https://codename.bond/.well-known/agent-registration.json - Identity Registry: https://robinhoodchain.blockscout.com/address/0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 - Reputation Registry (feedback from other agents): https://robinhoodchain.blockscout.com/address/0x8004BAa17C55a88189AE136b182e5fdA19dE9b63 - Sitemap: https://codename.bond/sitemap.xml