Last updated 7 days ago
Retrieves primary name for a given address
The primary name was fetched successfully.
The status code of the response.
200
const response = await fetch('https://api.justaname.id/ens/v1/primary-name/address?address=text&chainId=0', { method: 'GET', headers: {}, }); const data = await response.json();
{ "statusCode": 200, "result": { "data": { "id": "text", "name": "justghadi.jaw.eth", "address": "0x23d3957be879aba6ca925ee4f072d1a8c4e8c890", "nameHash": "0xe16944c2d7405e74b0263328cc8ad84415ba33fbcebd86e57718c72bc7f9442f", "chainId": 11155111 }, "error": "text" } }