Giter VIP home page Giter VIP logo

niftygateway's Introduction

niftygateway

NiftyGatewayJS is our Javascript package that allows you to integrate the Nifty Gateway wallet into your NFT project or game.

Check out our [documentation](https://docs.niftygateway.com for a full guide on how to use NiftyGatewayJS.

Get started with:

npm install niftygateway

Then, initialize a Nifty Gateway object with a dev key you get from our Dev portal: https://niftygateway.com/#/getapikey

You must also specify the network, rinkeby or main:

var nftg = new NiftyGatewayJS('rinkeby','yourDevKeyHere');

From there, you can use the Nifty Gateway object to call functions, such as getUserWalletAndEmailAddress(), which will ask a user if they are ok sharing their information with you, and then tell you their wallet and email address if they are:

nftg.getWalletAndEmailAddress().then(res => {
    //this function returns a promise which will resolve to a data object
    if (res.didSucceed == true) {
        console.log(res); //now you can access the wallet of a user
     }
 });

Examples

Check out sample guides on our Medium Page: https://medium.com/nifty-gateway.

The 'niftygateway_examples' directory has implemetation of the functions from NiftyGatewayJS in React.

niftygateway's People

Contributors

dcarlcf avatar griffincockfoster56 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.