Getting Started
npm install @tmawallet/sdkyarn add @tmawallet/sdkimport { TMAWalletClient } from '@tmawallet/sdk';
(async () => {
// Initialize the TMAWallet client with your project's public token
const tmaWallet = new TMAWalletClient('your_project_public_token');
// Initialize the wallet
await tmaWallet.init();
// Check if a bundle exists or create a new one
if (!tmaWallet.isBundleExists) {
await tmaWallet.createBundle();
}
console.log('Wallet address:', tmaWallet.walletAddress);
})();Last updated