ethnamed

API for Ethnamed


Keywords
domain, address
License
ISC
Install
npm install ethnamed@0.0.17

Documentation

Ethnamed Registry API

Website | Collaborate | Discuss

Use API

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);
}


// REGISTER NAME 
//please topup the account before because each address costs

var ethers = 0.01; // Please check the pricing on ethnamed.io

ethnamed.registerName(ethers, 'nickname', '0x123...', showResult);


// CHANGE ADDRESS
//Assign another address to nickname

ethnamed.changeAddress('nickname', '0x123...', showResult);


// TRANSFER OWNERSHIP
//Assign another owner

ethnamed.transferOwnership('nickname', '0x123...', showResult);

Start DAPP Server

Demo

Install

npm run setup
npm run compile

Start the Ganache blockchain

npm run blockchain

Deploy contracts

npm run deploy

Start the DAPP

npm run start

ethnamed.io