POST
/
v0
/
generic
/
ens
/
get
curl --request POST \
  --url https://api.compasslabs.ai/v0/generic/ens/get \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "chain": "ethereum:mainnet",
  "ens_name": "vitalik.eth"
}'
{
  "wallet_address": "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
  "registrant": "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45"
}

Authorizations

x-api-key
string
header
required

Your Compass API key. Get your key here.

Body

application/json

Request model for getting ENS details.

chain
enum<string>
required

The chain to use.

Available options:
base:mainnet,
ethereum:mainnet,
arbitrum:mainnet
ens_name
string
required

The ENS address of the user.

Example:

"vitalik.eth"

Response

200
application/json
Successful Response

Response model for ENS name details.

wallet_address
string
required

The wallet address of the user

Example:

"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45"

registrant
string
required

The registrant of the ENS

Example:

"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45"

Was this page helpful?