Typescript
import { CompassApiSDK } from "@compass-labs/api-sdk"; const compassApiSDK = new CompassApiSDK({ apiKeyAuth: "<YOUR_API_KEY_HERE>", }); async function run() { const result = await compassApiSDK.universal.genericEns({}); console.log(result); } run();
{ "wallet_address": "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", "registrant": "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45" }
An ENS name is a string ending in .eth.
.eth
E.g. vitalik.eth. This endpoint can be used to query the actual ethereum wallet address behind the ENS name.
vitalik.eth
Your Compass API Key. Get your key here.
ethereum
The ENS name to resolve.
Successful Response
Response model for ENS name details.
Was this page helpful?