Python
from compass_api_sdk import CompassAPI, models with CompassAPI( api_key_auth="<YOUR_API_KEY_HERE>", ) as compass_api: res = compass_api.universal.generic_ens(chain=models.V1GenericEnsChain.ETHEREUM, ens_name="vitalik.eth") # Handle response print(res)
{ "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?