Ethereum Coin98 Telegram Wallet SDK Bot Integration For React
Welcome to Coin98 Telegram Wallet Developer Guide.
This documentation guides developers building on the Coin98 Telegram Wallet using ReactJS. Any methods not listed here aren’t supported at the moment.
Outline
Initialize SDK
import { Coin98Provider } from '@coin98-com/telegram-connect-sdk'
<Coin98Provider chainId={chainId} partner={partner}>
{children}
</Coin98Provider>Explain:
chainId: specific chain id evm
partner: specific partner to know which is connecting
To connect Coin98 Telegram Wallet
To connect to Coin98 Telegram Wallet means to access the user's [blockchain - like Ethereum] account(s).
Experience functions
Once your account is connected, let's start experiencing more functions.
1. Transfer
return Promise<hash> - Initiates a new transaction.
2. Decrypt
return Promise<string> - Decrypts an encrypted message.
3. Get Encryption Public Key
return Promise<string>- The public encryption key of the Ethereum account whose encryption key should be retrieved
4. Encrypt
return Promise<string> - Encrypt message.
5. Switch Ethereum Chain
In our current flow, simply change the
chainIdin parameters before using any method.Our Coin98 Telegram Wallet Bot will automatically detect and switch chains accordingly
6. Sign Typed Data
return Promise<string> - Presents a structured data message for the user to sign.
7. Sign Typed Data V3
return Promise<string> - Presents a structured data message for the user to sign.
8. Sign Typed Data V4
return Promise<string> - Presents a structured data message for the user to sign.
9. Personal Sign
return Promise<string> - Presents a plain text signature challenge to the user.
Last updated