Rest API

Convert Name to Address

// Replace "123.ethw" with your name
const name = "123.ethw";
const response = await fetch(`https://ethw.id/api?method=getAddress&name=${name}`);
const { address } = await response.json();

Convert Address to Name(soon)

// Replace "address" with the address you want to lookup.
const address = "0x1234...abcdef";
const response = await fetch(`https://ethw.id/api?method=getName&address=${address}`);
const { name } = await response.json();

Last updated