Get by Address
GET/ens/v1/primary-name/address
Retrieves primary name for a given address
Request
Query Parameters
address stringrequired
The address of the primary name
Example: 0xb965a5f3a0fC18D84E68883ccAd508445a7917A8
chainId numberrequired
Chain id, we only support Ethereum Mainnet and Sepolia Testnet (1 for mainnet, 11155111 for sepolia)
Example: 11155111
Responses
- default
The primary name was fetched successfully.
- application/json
- Schema
- Example (from schema)
Schema
statusCode numberrequired
The status code of the response.
result objectrequired
data objectrequired
id stringrequired
name stringrequired
address stringrequired
nameHash stringrequired
chainId numberrequired
error stringrequired
Null if no error occurred, otherwise the error message.
{
"statusCode": 200,
"result": {
"data": {
"id": "string",
"name": "string",
"address": "string",
"nameHash": "string",
"chainId": 0
},
"error": "string"
}
}
Loading...