ethnamed

0.0.17 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i ethnamed

Weekly Downloads

1

Version

0.0.17

License

ISC

Unpacked Size

5.61 kB

Total Files

7

Last publish

Collaborators

  • askucher