{"id":19432654,"url":"https://github.com/pryority/ensurl","last_synced_at":"2026-05-17T07:41:26.436Z","repository":{"id":233125182,"uuid":"733683404","full_name":"Pryority/ENSURL","owner":"Pryority","description":"Don't trust a link is the correct URL, instead use ENSURL to verify Ethereum data.","archived":false,"fork":false,"pushed_at":"2023-12-19T22:32:09.000Z","size":802,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-07T20:27:56.473Z","etag":null,"topics":["bun","ens","security","viem"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Pryority.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-19T22:18:16.000Z","updated_at":"2023-12-19T22:21:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"32b88813-c100-4265-892f-18fadd959628","html_url":"https://github.com/Pryority/ENSURL","commit_stats":null,"previous_names":["pryority/ensurl"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pryority%2FENSURL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pryority%2FENSURL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pryority%2FENSURL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pryority%2FENSURL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pryority","download_url":"https://codeload.github.com/Pryority/ENSURL/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240612549,"owners_count":19829027,"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":["bun","ens","security","viem"],"created_at":"2024-11-10T14:36:35.914Z","updated_at":"2026-05-17T07:41:21.414Z","avatar_url":"https://github.com/Pryority.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ENSURL\n\nHave you been warned to not click the link in a tweet because of potential wallet drainers? Don't trust the link is the correct URL, *verify* with ENSURL.\n\n---\n\n\u003cdiv align=\"center\" style={{\"\"}}\u003e\n\u003ch2 style={{\"\"}}\u003eExample of a Fake/Malicious Link (12/19/2023)\u003c/h2\u003e\n\u003cimg src=\"./drainer-example.png\" alt=\"Drainer Demo\" style={{\"\"}}/\u003e\n\u003c/div\u003e\n\n---\n\n## Check URL Text Record [↗](./index.ts)\n\n```typescript\nimport { addEnsContracts } from \"@ensdomains/ensjs\";\nimport { getTextRecord } from \"@ensdomains/ensjs/public\";\nimport { createPublicClient, http } from \"viem\";\nimport { mainnet } from \"viem/chains\";\n\nconst client = createPublicClient({\n  chain: addEnsContracts(mainnet),\n  transport: http(),\n});\nconst url = await getTextRecord(client, {\n  name: \"ens.eth\",\n  key: \"url\",\n});\nconsole.log(url);\n```\n\n---\n\n## Using ENSURL\n\n### Option 1\n\n1. Clone the repository.\n2. Install dependencies with `bun install`.\n3. Update .eth name in `index.ts` to the desired name to have URL fetched.\n4. Run `bun check` to view the URL in the console.\n\n### Server/Runtime Demo\n\n\u003cdiv align=\"center\" style={{\"\"}}\u003e\n\u003cimg src=\"./program-demo.png\" alt=\"Program Demo\" style={{\"\"}}/\u003e\n\u003c/div\u003e\n\n## Option 2\n\n1. Open up a new tab of a browser like Chrome, Brave or Firefox.\n2. Copy and paste the entire contents of [out/index.js](./out/index.js) into the console.\n3. Update the default `\"ens.eth\"` name to the ENS name you want to check.\n4. Once updated, hit enter or return and wait for the URL to be fetched from Ethereum. You should see the URL printed on the next line in your browser console.\n\n\u003cdiv align=\"center\" style={{\"\"}}\u003e\n\u003cp style={{\"\"}}\u003e\u003cem style={{\"\"}}\u003eCheck the demo below to understand the instructions better.\u003c/em\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n### Browser Demo\n\n\u003cdiv align=\"center\" style={{\"\"}}\u003e\n\u003cimg src=\"./browser-demo.png\" alt=\"Browser Demo\" style={{\"\"}}/\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpryority%2Fensurl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpryority%2Fensurl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpryority%2Fensurl/lists"}