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)
E.g. vitalik.eth. This endpoint can be used to
query the actual ethereum wallet address behind the ENS name.
GET
/
v1
/
generic
/
ens
Python (SDK)
Copy
Ask AI
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)