Giter Site home page Giter Site logo

api's Introduction

Ethnamed Registry API

Website | Discuss | Demo

Use API

npm i ethnamed

INIT (Backend, Frontend)

var web3 = if window ? window.web3 : require('web3');

var ethnamed = require('ethnamed')(window.web3);

var showResult = function(err, result) {
    console.log(err, result);
}

CHECK NAME

ethnamed.verifyRecord("[email protected]", showResult);  // yourname == yourname.ethnamed.io

REGISTER NAME

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: "[email protected]",           //=> 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);

TRANSFER OWNERSHIP

Assign another owner when you sell the domain name

ethnamed.transferOwnership("[email protected]", '0x123...', showResult);

SEND TO (PAYPAL like functionality in crypto)

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: "[email protected]",                 //=> It could be a different domain like microsoft.com, ethername.io, ...
};

ethnamed.sendTo(request, showResult);

ethnamed.io

api's People

Contributors

askucher avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.