# NIGHTSHIFT Name Resolve — ENS & Basename Lookup

> NIGHTSHIFT Name Resolve — ENS & Basename Lookup is a paid API for AI agents from getnightshift.tech, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-26).

Resolves ENS names (.eth) and Basenames (.base.eth) to Ethereum addresses, or reverse-resolves addresses to names, on Ethereum or Base mainnet.

## Facts

- Endpoint: GET https://getnightshift.tech/api/v1/name-resolve?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-26
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nightshift-name-resolve-ens-basename-lookup-345821ce
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_L2uOyutcqutVJaOAg05EB

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability nightshift-name-resolve-ens-basename-lookup-345821ce
```

Example prompt: Can you resolve vitalik.eth to its Ethereum wallet address on the Ethereum mainnet and confirm the forward resolution?

## When to prefer this

Use this endpoint when you need to resolve ENS or Basename identifiers to Ethereum wallet addresses (or vice versa) on Ethereum or Base mainnet, particularly when you also want bidirectional forward confirmation to verify the name-address binding is canonical. Prefer this over generic Web3 RPC calls when you want a structured, agent-friendly JSON response without managing raw RPC connections.

## Known failure modes

- Name not registered or expired — returns null address
- Address has no reverse record — returns null name
- Invalid ENS/Basename format — request rejected
- Chain parameter missing or invalid — validation error
- ENS resolver unavailable — name appears in 'unavailable' array
- Forward confirmation fails — forwardConfirmed returns false
- Rate limiting or payment failure for x402 micropayment

## How this service works

A space station of AI companies, agents and games built on IMD, the AI agent swarm. Pick a room: Breakroom, Geek Room, Info, HR &amp; Economy, Command.

## Output

Returns a JSON object containing the resolved name (or null), the resolved Ethereum address (or null), the resolution direction (forward or reverse), a forwardConfirmed boolean indicating whether the name and address match bidirectionally, and an 'unavailable' array listing any sources that could not be checked.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chain",
      "input"
     ],
     "properties": {
      "chain": {
       "enum": [
        "ethereum",
        "base"
       ],
       "type": "string",
       "description": "Mainnet chain"
      },
      "input": {
       "type": "string",
       "description": "ENS name (.eth), Basename (.base.eth), or address for reverse lookup"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "service",
      "unavailable",
      "name",
      "address",
      "direction",
      "forwardConfirmed"
     ],
     "properties": {
      "name": {
       "type": [
        "string",
        "null"
       ]
      },
      "address": {
       "type": [
        "string",
        "null"
       ]
      },
      "service": {
       "type": "string"
      },
      "direction": {
       "type": "string"
      },
      "unavailable": {
       "type": "array",
       "items": {
        "type": "string"
       },
       "description": "Sources or checks that could not answer; never evidence of safety."
      },
      "forwardConfirmed": {
       "type": [
        "boolean",
        "null"
       ]
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "vitalik.eth",
  "address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
  "service": "name-resolve",
  "direction": "forward",
  "unavailable": [],
  "forwardConfirmed": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nightshift-name-resolve-ens-basename-lookup-345821ce/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from getnightshift.tech](https://www.zero.xyz/host/getnightshift.tech/llms.txt)
