Endpoints
Reverse lookup of an Ethereum address to a primary name
Performs a reverse lookup of an Ethereum address
to a primary name.
Data sources for the primary name lookup include:
- The Ethereum Provider configured in the NameGuard instance.
- For ENS names using CCIP-Read: requests to externally defined gateway servers.
Returns display_name
to be shown to users and estimates impersonation_status
.
GET
/
secure-primary-name
/
{network_name}
/
{address}
Path Parameters
address
string
requirednetwork_name
enum<string>
requiredAvailable options:
mainnet
, sepolia
Response
200 - application/json
Reverse lookup result.
primary_name_status
enum<string>
requiredThe status of a secure primary ENS name lookup performed by NameGuard.
normalized
: The ENS primary name was found and it is normalized.no_primary_name
: The ENS primary name was not found.unnormalized
: The ENS primary name was found, but it is not normalized.
Available options:
normalized
, no_primary_name
, unnormalized
impersonation_status
enum<string> | null
requiredImpersonation status of the primary_name
.
null
ifprimary_name
isnull
Available options:
unlikely
, potential
primary_name
string | null
requiredPrimary ENS name for the Ethereum address.
null
ifprimary_name_status
is any value exceptnormalized
display_name
string
requiredENS beautified version of primary_name
.
- if
primary_name
isnull
then provides a fallbackdisplay_name
of "Unnamed [first four hex digits of Ethereum address]", e.g. "Unnamed c2a6"
nameguard_result
object | null
requiredNameGuard report for the primary_name
.
null
ifprimary_name_status
isno_primary_name
(primary name is not found)