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:
.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
: