ENS and Basename resolve API
Resolve an ENS or Basename to an address, or an address to a forward-confirmed primary name, via official ENS on Ethereum and Basenames on Base. POST /api/v1/chain-data/ens/resolve costs $0.001 USDC on Base via x402. HTTP 2xx with status complete or partial and real data is charged; status failed, empty payloads, and HTTP 4xx/5xx are not charged. Sources: Base Mainnet public JSON-RPC Coinbase Exchange ETH-USD ticker for gas USD estimates Limits: Reads do not submit transactions. Log and transfer queries are capped and require a bounded block range.
Resolve an ENS or Basename to an address, or an address to a forward-confirmed primary name, via official ENS on Ethereum and Basenames on Base. POST /api/v1/chain-data/ens/resolve costs $0.001 USDC on Base via x402. HTTP 2xx with status complete or partial and real data is charged; status failed, empty payloads, and HTTP 4xx/5xx are not charged. Sources: Base Mainnet public JSON-RPC Coinbase Exchange ETH-USD ticker for gas USD estimates Limits: Reads do not submit transactions. Log and transfer queries are capped and require a bounded block range.
/api/v1/chain-data/ens/resolveExample request
curl -i -X POST "https://www.brainiac.software/api/v1/chain-data/ens/resolve" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"name": "vitalik.eth"
}
JSONExample response
{
"status": "complete",
"system": "ens",
"name": "vitalik.eth",
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"primaryName": "vitalik.eth",
"forwardConfirmed": true,
"source": "ENS registry on Ethereum",
"asOf": "2026-11-20T23:20:00.000Z",
"missing_items": []
}An unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.
Errors: HTTP 4xx/5xx are not charged. HTTP 2xx with status complete or partial and real data is charged; failed or empty results are not charged. Invalid cursor returns HTTP 400 (uncharged).
Limits: Reads do not submit transactions. Log and transfer queries are capped and require a bounded block range. gas/current is a fee snapshot, not a guaranteed inclusion price.
FAQ
- Do I need an API key? No. Pay the listed USDC amount with x402.
- What network? Base (eip155:8453), USDC.
- Is this an official determination? No. Results are for human review against the cited sources.
Related operations
- Get network information — $0.002 USDC
- Get latest block — $0.002 USDC
- Get block by number or hash — $0.002 USDC
- Get block transactions — $0.002 USDC