Comment on page
👩💻

JSON - RPC

You can add name services to your project using JSON-RPC. You can use it for address resolution and to display the primary address.

Resolve Address

https://rpc.ether.domains/domain/{DOMAIN_CHAIN}/getRecord/{DOMAIN_NAME}.{DOMAIN_EXTENSION}
Examples:

Primary Address

https://rpc.ether.domains/domain/{DOMAIN_CHAIN}/getReverseRecord/{ADDRESS}
Examples:
https://rpc.ether.domains/domain/ether/getReverseRecord/0x74dAE0F3C527f4546fa8CE7b9cFFA6A10A9f5e00
>>> kryptos.ether
https://rpc.ether.domains/domain/era/getReverseRecord/0xa0eDC5F03449BF8977AB0ECf5924a5126E513d4B
>>> era.era
https://rpc.ether.domains/domain/polygon/getReverseRecord/0xa0eDC5F03449BF8977AB0ECf5924a5126E513d4B
>>> polygon.pol
https://rpc.ether.domains/domain/linea/getReverseRecord/0xa0eDC5F03449BF8977AB0ECf5924a5126E513d4B
>>> linea.lin
https://rpc.ether.domains/domain/scroll/getReverseRecord/0xa0eDC5F03449BF8977AB0ECf5924a5126E513d4B
>>> scroll.scroll