1.4.8 • Published 11 months ago
@web3jskit/tt-dapp v1.4.8
@web3jskit/dapp
Introduction
@web3jskit/dapp is an interface layer that communicates with Gel.Wallet. By integrating @web3jskit/dapp, web2 and web3 developers can easily use multi-chain wallets.
Documentation
Full documentation
Usage
import { Web3Kit, ChainType } from "@web3jskit/dapp";
// 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.PUT,
methodName: "connect",
});
}
// Send Connect And SignMessage
function multiple() {
const web3Kit = new Web3Kit();
const response = await web3Kit.multipleRequest({
chainType: ChainType.PUT,
events: [
{
methodName: "connect",
},
{
methodName: "signMessage",
params: {
message: "", // base58
display: "utf8",
},
},
],
});
}
1.4.8
11 months ago
1.4.7
12 months ago
1.4.6
1 year ago
1.4.5
1 year ago
1.4.4
1 year ago
1.4.3
1 year ago
1.4.2
1 year ago
1.4.1
1 year ago
1.4.0
1 year ago
1.3.9
1 year ago
1.3.7
1 year ago
1.2.8
1 year ago
1.3.6
1 year ago
1.2.7
1 year ago
1.3.5
1 year ago
1.2.6
1 year ago
1.3.4
1 year ago
1.2.5
1 year ago
1.3.3
1 year ago
1.2.4
1 year ago
1.3.2
1 year ago
1.2.3
1 year ago
1.3.1
1 year ago
1.3.0
1 year ago
1.3.8
1 year ago
1.2.9
1 year ago
1.2.2
1 year ago