GET
/
v0
/
generic
/
ens
/
get
from compassapisdk import CompassAPISDK, models


with CompassAPISDK(
    api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api_sdk:

    res = compass_api_sdk.universal.ens(chain=models.GenericEnsChain.ETHEREUM_MAINNET)

    # 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

Response

200
application/json
Successful Response

Response model for ENS name details.

wallet_address
string
required

The wallet address of the user

Examples:

"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45"

registrant
string
required

The registrant of the ENS

Examples:

"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45"