Withdraw a bot's balance
Send what your bot's address holds to the wallet that owns the bot, from My bots in the Morsel app. The destination is always you.
People pay your bot at its own address. Withdraw moves that balance to the wallet that owns the bot, without you ever handling the bot's token.
Withdraw
- In the Morsel app, open Settings → Chats → My bots with the wallet that owns the bot.
- Tap the bot, then Balance.
- Tap Withdraw.
- Review the request and sign it with your wallet.
The funds go from the bot's address to your wallet.
How it works
- You sign the request. Your wallet, the bot's owner, signs the withdrawal request.
- The destination is always the owner. A withdrawal can only pay the wallet that owns the bot. There's no address to type, and no way to send it anywhere else.
- Your bot's server does the transfer. Only your server holds the bot's key, so the bot itself moves the funds when it gets your signed request.
What you need
- The bot's server must be online when you withdraw.
- It must run an SDK version with auto-withdraw. An older SDK can't carry out a withdrawal. Update
@morsel/botormorsel-boton your server.
Before you regenerate or delete
A new token is a new key and a new address. Withdraw before you tap Regenerate token or Delete bot, while the server still runs the current token. Funds left at an old address stay with whoever holds that address's token.