1.1.2 • Published 5 months ago

@tokenup/web3kit v1.1.2

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

@tokenup/web3kit

Introduction

@tokenup/web3kit is an interface layer that communicates with TokenUp. By integrating @tokenup/web3kit, web2 and web3 developers can easily use multi-chain wallets.

Usage

import { Web3Kit, ChainType } from "@tokenup/web3kit";

// Web3Kit uses a singleton, multiple instances of new Web3Kit() will not cause memory consumption

// Example of getting user balance
function example() {
  const web3Kit = new Web3Kit();
  web3Kit.request({
    chainType: ChainType.SOL,
    methodName: "connect",
  });
}

// Send Connect And SignMessage
function multiple() {
  const web3Kit = new Web3Kit();
  const response = await web3Kit.multipleRequest({
    chainType: ChainType.SOL,
    events: [
      {
        methodName: "connect",
      },
      {
        methodName: "signMessage",
        params: {
          message: "", // base58
          display: "utf8",
        },
      },
    ],
  });
}
1.1.2

5 months ago

1.1.1

5 months ago

1.1.0

5 months ago

1.0.9

5 months ago

1.0.8

6 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

8 months ago