78trust / 100

Chain Ens

by api.x-402.online in Weather & location

x402 APIPassing, checked 31 min ago

ENS name resolution in both directions: an .eth name to its address, or an address to its primary ENS name, with the avatar when set. Query: ?name=vitalik.eth or ?address=0xd8dA…

GET https://api.x-402.online/v1/chain/ens

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
355 ms typical, 600 ms slowest 5%
Last check
31 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.x-402.online/v1/chain/ens?name=vitalik.eth"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.x-402.online%2Fv1%2Fchain%2Fens
const res = await pay("https://api.x-402.online/v1/chain/ens?name=vitalik.eth");
console.log(await res.json());

Example input

{
  "name": "vitalik.eth"
}

Example output

{
  "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "name": "vitalik.eth",
  "resolved": true
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
31 min agoPassed402355 ms$0.005
4 h agoPassed4022.7 s$0.005
8 h agoPassed402600 ms$0.005
11 h agoPassed402274 ms$0.005
15 h agoPassed402265 ms$0.005
18 h agoPassed402577 ms$0.005
23 h agoPassed402289 ms$0.005
25 h agoPassed402244 ms$0.005
30 h agoPassed402254 ms$0.005
33 h agoPassed402426 ms$0.005
36 h agoPassed402422 ms$0.005
41 h agoPassed402408 ms$0.005