dappKit Documentation
  • About dappKit
  • Start building
    • Installation
    • How To Guides
      • Create a Web3Connection
      • Create an ERC20 Token
      • Create an ERC1155
      • Create an ERC721
      • Create your NFT Art Gallery
      • Create other Project
      • Create custom Object
    • Examples
  • Use Cases
  • How to Contribute
  • External Links
    • SDK Documentation
    • GitHub
  • Community
    • Discord Server
    • Support
Powered by GitBook
On this page
  1. Start building
  2. How To Guides

Create a Web3Connection

Create a Simple Web3 Connection

PreviousHow To GuidesNextCreate an ERC20 Token

Last updated 3 years ago

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