Sending Ether Using .ip Domains
EBPTO conforms to the ENS standard, which means you can integrate EBPTO into your dapp without changing any code. All you need is a Web3 provider
that points to the EBPTO registry instead of the ENS registry.
Here is example ethers.js code for creating an EBPTO-enabled provider, looking up an address, and sending 1 ETH to that address:
const provider = ethers.getDefaultProvider({
name: "homestead",
chainId: 1,
ensAddress: '0xDd0Bc20FB93E3033C9282E322f897fC2997F7f92'
});
const address = await provider.resolveName("bob.ip")
const tx = signer.sendTransaction({
to: address,
value: ethers.utils.parseEther("1.0")
});
await provider.lookupAddress("0xDd0Bc20FB93E3033C9282E322f897fC2997F7f92")