Request /name.eth
or /0x...
and the API will return the following ENS records:
- description
- avatar
- url
- telegram
- github
It works with ENS names and Ethereum addresses, but is slightly faster with ENS names.
All you need is a GitHub account, a Vercel account, and a JSON RPC endpoint from a provider such as Alchemy or Infura.
Under "Configure Project", add the RPC endpoint.
Once Vercel is done deploying your project, press "Go to Dashboard" then "Visit". That is your deployed API!
You will need Node.js and npm installed on your machine.
- Install dependencides with
npm install
- Rename
.env.example
to.env
and add your RPC endpoint - Install the Vercel CLI
- Start the local server with
vercel dev