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