1.1.1 • Published 1 year ago
@jsweb3/dapp v1.1.1
JSWeb3-Dapp
Introduction
JSWeb3-Dapp is an interface layer that communicates with DID.PUT. By integrating JSWeb3-Dapp, web2 and web3 developers can easily use multi-chain wallets.
Usage
import { Jsweb3 } from "@jsweb3/dapp";
import type { ChainType } from "jsweb3/dapp";
// Jsweb3 uses a singleton, multiple instances of new Jsweb3() will not cause memory consumption
// Example of getting user balance
function example() {
const jsweb3 = new Jsweb3();
jsweb3.request({
chainType: ChainType.PUT,
methodName: "connect",
});
}