Create a Web3Connection

Create a Simple Web3 Connection

A very simple way to connect your app to the web3 Environment

 import { Web3Connection } from '@taikai/dappkit';

const web3Connection = new Web3Connection({ 
 web3Host: 'WEB3_LINK',
 /* privateKey: '' */

await web3Connection.start();
await web3Connection.connect(); // if a privateKey was provided, can be ignored

console.log("User address", await web3Connection.getAddress());

Looking for more functions

See all available functions here

Last updated