DEVELOPERS

Build with .asi

SDK

Every lookup is a direct onchain call to the UniversalResolver. Unset records return null; RPC failures throw, so throttling never reads as “no record”. Names with another suffix (vitalik.eth) are refused, never rewritten.

npm i @asi-names/sdk viem

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

// register with a viem WalletClient (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

Hosted 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>" } } } }
check_name
Available, reserved or taken; price in ETH/USDC/USDT.
prepare_registration
Step 1: balance + ERC-1155 checks, commit tx, secret.
prepare_register_complete
Step 2: verifies commit age; approve (stablecoins) + register.
prepare_renew
Renew any name via the NameWrapper (keeps expiry in sync).
prepare_set_records
Addresses, texts, IPFS site; controller only.
prepare_set_primary_name
Primary on every EVM chain; adds the address step if needed.
resolve / reverse_lookup
Addresses per chain, records (untrusted), owner, expiry; primary names.
list_names / send_transaction
Names a wallet holds; allowlisted broadcast of signed steps.

Resolving without the SDK

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

UniversalResolver 0x862F5eca96515B9F53768800f03509987bf0caCA

resolve(dnsEncode("myagent.asi"), addr(namehash("myagent.asi"), 0x80002105))  // Base
reverse(0xYourAddress, 0x8000a4b1)                                              // Arbitrum

Contracts · Ethereum mainnet

All verified on Etherscan and owned by a 2-of-3 Safe; .asi is locked to its registrar in the root. Source: RWA-ID/asi-names (ENS v1.7.0 fork, MIT).