1.3.0 • Published 2 years ago

@barakatech/qafnft-metamask-plugin v1.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 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

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago