Build with
.asi
SDK
@asi-names/sdk@0.1.1Every lookup is a direct onchain call to the UniversalResolver. Unset records return null; RPC failures throw, so throttling never reads as “no record”. Other suffixes like vitalik.eth are refused, never rewritten.
import { createAsiClient, registerName } from "@asi-names/sdk"; const asi = createAsiClient({ rpcUrl: process.env.MAINNET_RPC }); await asi.getAddress("myagent.asi", { chainId: 8453 }); // any EVM chain await asi.getText("myagent.asi", "url"); await asi.getContenthash("myagent.asi"); // ipfs://bafy… await asi.getName("0x…", { chainId: 42161 }); // verified primary name // commit → ~60s → register, receipts checked await registerName(asi, walletClient, { name: "myagent", years: 1, token: "USDC", records: { address: "0x…", texts: { url: "https://…" } } });
MCP server for AI agents
@asi-names/mcp@0.1.0Hosted at https://mcp.asinames.xyz/mcp (Streamable HTTP, no auth) or local over stdio. It holds no keys: every write comes back as steps, each with a complete transaction (nonce, gas, fees, chainId 1) for the agent’s wallet to sign. With PayBox: pass it to request_wallet_sign unchanged, then broadcast with send_transaction.
// hosted { "mcpServers": { "asi-names": { "url": "https://mcp.asinames.xyz/mcp" } } } // local { "mcpServers": { "asi-names": { "command": "npx", "args": ["-y", "@asi-names/mcp"], "env": { "RPC_URL": "https://eth-mainnet.g.alchemy.com/v2/<key>" } } } }
Resolving without the SDK
ENSIP-11 · ENSIP-19Call the UniversalResolver on Ethereum mainnet with the DNS-encoded name and the resolver calldata. For an EVM chain, ask for coin type 0x80000000 | chainId (ENSIP-11); the PublicResolver falls back to the default EVM record (ENSIP-19). Primary names: reverse(addressBytes, coinType), which verifies the forward record.
resolve(dnsEncode("myagent.asi"), addr(namehash("myagent.asi"), 0x80002105)) // Base reverse(0xYourAddress, 0x8000a4b1) // Arbitrum
Contracts · Ethereum mainnet
ENS v1.7.0 fork · MIT- UniversalResolver0x862F5eca96515B9F53768800f03509987bf0caCAresolve(name, data) / reverse(addr, coinType). Use this to resolve.
- ASIRegistrarController0xeFd488CaD139eAb30d63C7e16A286f6Afe2F26EBCommit/reveal registrar. ETH, USDC, USDT. ENS-compatible ETH ABI.
- ASIWrappedRegistrar0xc8280A388469E1f619cef154bDba6E67465f30d8Register + wrap in one step; renew through the NameWrapper.
- PublicResolver0xf8583956Da77F2f69162056DE9c029D264dC761Eaddr (ENSIP-11, default-EVM fallback), text, contenthash.
- NameWrapper0xDbD333d657a56fA884Df3661B14460C8d9165b5EERC-1155 names with onchain card art.
- BaseRegistrar0x961a030ED67F52Ab0589C6E0F41c9B50D16e3e12ERC-721 registration record for second-level names.
- ENSRegistry0x0B37f0F4f16d495449a1B276d0e49a7b47778a61The .asi root registry.
- DefaultReverseRegistrar0xBEa7cD170314A6a22FEda3547cE8FE9C57E15bf9Primary name on every EVM chain (default.reverse).
- ReverseRegistrar0xD5776A1E861723a43f6C85048E159D7C14Ee9F5Eaddr.reverse (Ethereum).
- ASIPriceOracle0x7cA636391B8cC4da9c5a93308Bc60fe09af8cfe7USD tiers, Chainlink ETH/USD, expiry premium.
- ASIDNSClaim0xe78eC9D71AB25A62821Ae2f6473f4F628ED3afC0Trademark sunrise: DNSSEC TXT claims.
- ASIMetadataService0x5591A2B89769aEE3B2bA481830A54a393E02A2c8Onchain JSON + SVG card for wrapped names.