ens2hex

About this site

What is this?

This is a tool to get the Ethereum hexadecimal (0x) address for every ENS (.eth) name in a list.

How does it work?

For each ENS name in the list, this tool will calculate the name's namehash according to ERC-137.

Then it will prepare a JSON-RPC request to query the multicall3 smart contract, which in turn contains batched calls to the ENS Public Resolver 2 and the Old ENS Public Resolver 2 smart contracts for the hexadecimal addresses.

Finally the tool sends the request to an Ethereum node, which executes the payload and provides a response.

Note that the multicall3 smart contract was deployed in block number 14353601, so 14353601 is the oldest block that can be queried.

Credits

This tool uses Cloudflare's Ethereum gateway to query the ENS smart contract on the Ethereum blockchain. Click here or here to see a list of some other public nodes you could use.

In the JavaScript, the only third-party code is the keccak256 implementation used to hash the ENS names. The rest of the tool consists of about 200 lines of vanilla JavaScript to manipulate the names, prepare the JSON-RPC payload, and parse the response.

The keccak256 implementation was bundled from Paul Miller's noble-hashes project.

Click here to view this site's source code on GitHub.

ENS lookup

Or upload a list of names:

Advanced options
ENS name Address