Learn how to create and integrate Telegram bots with Dynamic’s server wallets
Environment ID
and create a new API Token
- you’ll need these to authenticate your requests to Dynamic’s API.env
file.
wallets
with the following schema:
.env
file with your credentials:
backUpToClientShareService: true
so Dynamic securely backs up the
client share to the managed Client Share Service. If you prefer to store the client share yourself,
set backUpToClientShareService: false
and store it in your database. If you
do, encrypt the client share before storing it..signMessage
method from the Dynamic client to sign a message with the user’s wallet. The message that is being signed is passed as a command argument by the user itself.
.createViemPublicClient
method from the Dynamic client. We prepare a transaction request and sign it using the .signTransaction
method. Finally, we send the signed transaction to the blockchain.
The user provides the recipient address and the amount of ETH to send as command arguments.
/wallet
, /send
, and /sign
commands.
package.json
: