npm i ethnamed
var web3 = if window ? window.web3 : require('web3');
var ethnamed = require('ethnamed')(window.web3);
var showResult = function(err, result) {
console.log(err, result);
}
ethnamed.verifyRecord("some@email.com", showResult); // yourname == yourname.ethnamed.io
You can set of update record by yourself once you get the
var request = {
amountEthers: 0.01, //=> Please checkout the pricing table on ethnamed.io
name: "some@email.com", //=> It could be a different domain like microsoft.com, ethername.io, ...
record: '0x123...' //=> Verification Record with Standard ETH_ADDRESS,BTC_ADDRESS,...
};
// 1. In case when you use custom domain please send this request only when you put the meta tag in to the head of your website `yourname.domain.io`
// <meta property='ethnamed' content='0x123...'>
// 2. In case you use nickname.ethnamed.io you can just do nothing for verification
ethnamed.setupRecord(request, showResult);
Assign another owner when you sell the domain name
ethnamed.transferOwnership("some@email.com", '0x123...', showResult);
You can send funds to NON-existent address and let withdraw it when user registers it
var request = {
amountEthers: 0.01, //=> Please checkout the pricing table on ethnamed.io
name: "some@email.com", //=> It could be a different domain like microsoft.com, ethername.io, ...
};
ethnamed.sendTo(request, showResult);
ethnamed.io