Address
Retrieves primary name for a given address
Query parameters
addressstringRequiredExample:
The address of the primary name
0xb965a5f3a0fC18D84E68883ccAd508445a7917A8
chainIdnumberRequiredExample:
Chain id, we only support Ethereum Mainnet and Sepolia Testnet (1 for mainnet, 11155111 for sepolia)
11155111
Responses
default
The primary name was fetched successfully.
application/json
get
GET /ens/v1/primary-name/address HTTP/1.1
Host: api.justaname.id
Accept: */*
default
The primary name was fetched successfully.
{
"statusCode": 200,
"result": {
"data": {
"id": "text",
"name": "justghadi.jaw.eth",
"address": "0x23d3957be879aba6ca925ee4f072d1a8c4e8c890",
"nameHash": "0xe16944c2d7405e74b0263328cc8ad84415ba33fbcebd86e57718c72bc7f9442f",
"chainId": 11155111
},
"error": "text"
}
}
Last updated
Was this helpful?