/api/v1/names/{name}?years=1Name lookup
Returns the canonical name, owner, resolved address, availability, registration price, expiry, and profile records.
Developer documentation
Resolve human-readable .xdc names, look up primary names, check availability, and read public profiles on XDC mainnet.
Public API
These endpoints require no API key. Names are canonicalized to lowercase and may be supplied as either a bare label or a complete .xdc name.
/api/v1/names/{name}?years=1Returns the canonical name, owner, resolved address, availability, registration price, expiry, and profile records.
/api/v1/reverse/{address}Returns the verified primary XDCID name for a wallet address, or null when no current record exists.
/api/v1/addresses/{address}/namesReturns the verified primary ID and every active XDCID name currently owned by a wallet.
TypeScript SDK
The read-only SDK provides name validation, forward and reverse resolution, availability, pricing, expiry, and profile lookups with XDC RPC fallback. It never requests a private key or wallet signature.
The source is available now and is compiled with this project. Public npm installation instructions will be added after the package is released.
import { createXdcidClient } from "@xdcid/sdk";
const xdcid = createXdcidClient();
const result = await xdcid.resolveName("alice.xdc");Success format
Every application JSON response identifies the API version. Clients should ignore response fields they do not recognize.
{
"version": "v1",
"data": {
"name": "alice.xdc",
"available": false,
"resolvedAddress": "0x..."
}
}Error format
Invalid input returns HTTP 400, rate limits may return 429, and temporary XDC RPC failures return 503.
{
"version": "v1",
"error": {
"code": "INVALID_NAME",
"message": "Invalid XDCID name"
}
}XDC AI Gateway
The XDCID service is available through XDC AI for 0.001 USDC per call. Agents should use the service URL published by XDC AI; protected upstream credentials remain server-side and are never required by callers.
Resolve an XDCID name to its owner, payment address, and expiry.
Find the verified primary XDCID name for an XDC address.
Check whether a name is available and retrieve its registration price.
Read the public profile records attached to an XDCID name.
List every active XDCID name owned by an address, including its verified primary ID.
New optional fields may be added within v1. Removing fields, renaming fields, changing their types, or changing documented behavior requires a new API version.
View the complete schemas and status codes →