Getting Started
Prerequisites
Node.js: Ensure you have Node.js installed (version 14 or higher recommended).
Package Manager: You will need npm or yarn to install the SDK.
Basic Knowledge: Familiarity with JavaScript, blockchain concepts, and Telegram mini-apps is helpful.
Installation
To get started with TMAWallet, install the SDK using npm or yarn:
or
Basic Setup
Below is a simple example of how to set up TMAWallet in your project and create a wallet:
This example shows how to initialize the TMAWallet client, create a bundle if it doesn't exist, and retrieve the wallet address.
Quick Start Guide
Install the SDK: Use npm or yarn to install TMAWallet.
Initialize the Client: Import
TMAWalletClient
and initialize it with your project's public token.Create or Restore a Wallet: Use
createBundle()
to create a new wallet or check the existing wallet bundle.Interact with Ethereum: Use the SDK to sign transactions, connect to Ethereum, and interact with smart contracts.
Last updated