triwallet
v0.0.9
Published
This package is helpful to get wallet address of web3 wallets
Downloads
43
Readme
triwallet Integration Guide
Add wallet3 to your project dependencies
With Yarn
yarn add triwalletor with NPM
npm install triwalletgetWalletAddress for a particular wallet
With JavaScript
const { TriWallet, WALLET, NETWORK } = require('triwallet');
const triWallet = new TriWallet(WALLET.METAMASK);
const walletAddress = await triWallet.getWalletAddress(NETWORK.POLYGON);or with TypeScript
import { TriWallet, WALLET, NETWORK } from 'triwallet';
const triWallet = new TriWallet(WALLET.METAMASK);
const walletAddress = await triWallet.getWalletAddress(NETWORK.POLYGON);getWalletAddress for a testnet wallet
With JavaScript
const { TriWallet, WALLET, NETWORK } = require('triwallet');
const triWallet = new TriWallet(WALLET.METAMASK);
triWallet.enableTestnet();
const walletAddress = await triWallet.getWalletAddress(NETWORK.POLYGON);or with TypeScript
import { TriWallet, WALLET, NETWORK } from 'triwallet';
const triWallet = new TriWallet(WALLET.METAMASK);
triWallet.enableTestnet();
const walletAddress = await triWallet.getWalletAddress(NETWORK.POLYGON);