👩‍💻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:

https://rpc.ether.domains/domain/base/getRecord/base.bnsarrow-up-right https://rpc.ether.domains/domain/ether/getRecord/gamer.etherarrow-up-right https://rpc.ether.domains/domain/era/getRecord/abc.eraarrow-up-right https://rpc.ether.domains/domain/linea/getRecord/amazon.linarrow-up-right https://rpc.ether.domains/domain/polygon/getRecord/tesla.polarrow-up-right https://rpc.ether.domains/domain/scroll/getRecord/scroll.scrollarrow-up-right https://rpc.ether.domains/domain/zora/getRecord/zora.zrarrow-up-right https://rpc.ether.domains/domain/manta/getRecord/abcd.mantaarrow-up-right

Primary Address

https://rpc.ether.domains/domain/{DOMAIN_CHAIN}/getReverseRecord/{ADDRESS}

Examples:

https://rpc.ether.domains/domain/base/getReverseRecord/0xa0eDC5F03449BF8977AB0ECf5924a5126E513d4B
>>> base.bns

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

https://rpc.ether.domains/domain/zora/getReverseRecord/0xa0eDC5F03449BF8977AB0ECf5924a5126E513d4B
>>> zora.zr

https://rpc.ether.domains/domain/manta/getReverseRecord/0xa0eDC5F03449BF8977AB0ECf5924a5126E513d4B
>>> manta.manta

Last updated