GET
/
v0
/
generic
/
ens
/
get
from compass_api_sdk import CompassAPI, models


with CompassAPI(
    api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api:

    res = compass_api.universal.ens(chain=models.GenericEnsChain.ETHEREUM_MAINNET, ens_name="vitalik.eth")

    # Handle response
    print(res)
{
  "wallet_address": "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
  "registrant": "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45"
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

chain
enum<string>
default:ethereum:mainnet
required

The chain to use.

Available options:
base:mainnet,
ethereum:mainnet,
arbitrum:mainnet
ens_name
string
default:vitalik.eth

The ENS name to resolve.

Response

200
application/json

Successful Response

Response model for ENS name details.