{"id":21247177,"url":"https://github.com/alchemyplatform/get-ens-by-address","last_synced_at":"2025-12-29T19:35:08.966Z","repository":{"id":188542239,"uuid":"678947925","full_name":"alchemyplatform/get-ens-by-address","owner":"alchemyplatform","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-15T19:02:03.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-01-21T20:26:23.028Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alchemyplatform.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-15T18:56:04.000Z","updated_at":"2024-12-16T09:47:20.000Z","dependencies_parsed_at":"2023-08-15T20:41:31.731Z","dependency_job_id":null,"html_url":"https://github.com/alchemyplatform/get-ens-by-address","commit_stats":null,"previous_names":["alchemyplatform/get-ens-by-address"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alchemyplatform%2Fget-ens-by-address","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alchemyplatform%2Fget-ens-by-address/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alchemyplatform%2Fget-ens-by-address/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alchemyplatform%2Fget-ens-by-address/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alchemyplatform","download_url":"https://codeload.github.com/alchemyplatform/get-ens-by-address/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243685582,"owners_count":20330982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T02:16:47.368Z","updated_at":"2025-12-29T19:35:03.946Z","avatar_url":"https://github.com/alchemyplatform.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Overview\nThis repository contains a JavaScript script that utilizes Alchemy's SDK to fetch the ENS names owned by an address on Ethereum or Polygon with a single API request. For each NFT, the fields below are printed, however, to see all fields refer to the [Alchemy API reference](https://docs.alchemy.com/reference/getnfts):\n\n- Title\n- Description\n- Token ID\n- Token Type\n\nIn this example, this script is set up to fetch Elan Halperin's ENS domains by using her wallet address and ENS contract address, but you can replace those with your own in lines 14 and 15, respectively. \n\n## Steps to Run\n\nBefore running the script, ensure that you have [Node.js](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm), [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm), and [yarn](https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable) installed on your system. \n\nFollow these steps to run the script:\n\n1. Clone this repository to your local machine:\n`git clone https://github.com/alchemyplatform/get-ens-by-address.git`\n\n\n2. Navigate to the project folder: `cd get-ens-by-address`\n\n\n3. Install the Alchemy SDK and the `dotenv` package running either of the following commands:\n    - `yarn add alchemy-sdk dotenv`\n    - `npm i alchemy-sdk dotenv`\n      \n4. Open the `sample.env` file and update the value for the API Key to your own value and rename file to `.env`. If you don't have an Alchemy API Key yet you can [create one for free here](https://alchemy.com/?a=starter-code). Simply make an account and find the \"Access Keys\" section in the dashboard to generate your own key! \n\n5. Open `getENS.js` and update the value of the Wallet Address and ENS contract address found within the main function on lines 14 and 15 to reflect the wallet that you will be querying. \n\n6. Run the script in the terminal: `node getENS.js`\n\n\nBy following these steps, the script will execute and fetch ENS names owned by an address, printing out the desired fields to the console.\n\n\n## Frequently Used Options and Best Practices\nWhen working with the Alchemy SDK, there are several options and best practices that you can consider:\n\n### Pagination\nBy default, the request for NFTs has a page size of 100. If you have a large number of NFTs and want to retrieve all of them, you can implement pagination. Alchemy's API supports pagination using the `page` and `size` parameters. You can adjust the `size` parameter to specify the number of NFTs to retrieve per page and use the `page` parameter to iterate through the pages of results.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falchemyplatform%2Fget-ens-by-address","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falchemyplatform%2Fget-ens-by-address","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falchemyplatform%2Fget-ens-by-address/lists"}