1.3.0 • Published 3 years ago

@barakatech/qafnft-metamask-plugin v1.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

QafNft Metamask Plugin

A utility library for QaftNft services. You can easily integrate QafNft services without any Metamask or web-3 knowledge.

Installation

npm install @barakatech/qafnft-metamask-plugin

Credentials

  • You can get service informations and base url from https://docs.qafnft.com
  • Please send an email to get your API credentials

Usage

import QafNftPlugin from '@barakatech/qafnft-metamask-plugin';

const qafNftPlugin = new QafNftPlugin(baseUrl, apiKey, apiSecret, gameId);

Callback Usage

  • In some of our functions, we expect you to send a callback functions as a parameter. We send a three parameters in callback functions;
    • data represents result of your process.
    • message represents error message. If an error occured it won't be empty, otherwise it will be null.
    • error represents an error occured or not. It can be true or false.
import QafNftPlugin from '@barakatech/qafnft-metamask-plugin';

const qafNftPlugin = new QafNftPlugin(baseUrl, apiKey, apiSecret, gameId);
qafNftPlugin.initWeb3Context((data, message, error) => {
      if (error) {
        console.log(message);
      } else {
        console.log(data);
      }
    })

License

MIT

1.3.0

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago