Request /name.eth
or /0x...
and the API will return the following ENS records:
- description
- avatar (append
?avatar
query to URL) - url
- telegram
- github
It works with ENS names and Ethereum addresses, but is slightly faster with ENS names.
This is probably not the fastest way to fetch the records of an ENS name, but certainly the easiest that I've come across.
You don't need any coding experience to deploy your own API endpoint, but you will need a few accounts:
Once you've created those accounts, Deploy to Vercel via the button below and follow the deployment flow.
Under "Configure Project", add the Project ID and Project Secret from Infura.
Once Vercel is done deploying your project, press "Go to Dashboard" then "Visit". That is your API endpoint!
You will need Node.js and npm installed on your machine.
- Install dependencides with
npm install
- Rename
.env.example
to.env
and add your Infura project credentials - Start the local server with
npm start