New SAFE Network Wallet Bot

I’m happy to announce that with some effort Telegram has now been connected to the SAFE CLI!

The Telegram Bot offers users to experiment with sending SAFE Coins from their created wallet to other users.

For now the bot uses test-coins and runs on a local baby-flemming network, not yet connected to the shared-section, might soon be possible after some IGD updates. You can also top up more coins and tip users by replying with a “/tip [amount]” command and is fun to do!

What is great about this bot is that normal users who are not familiar with SAFE Network can see what is being used by the network: SAFE URL, Public and Secret Keys. Without needing to install any CLI software and learn to use all of these commands, flags, etc.

Additionally, there is an example container with a test text file that can be inspected with cat & dog and see similar output as regular CLI. Then lastly it is also possible to create new keypairs.

You can see in the following screenshots how it works:

init

Initializing Wallet for Bot

Your personal details: SAFE URL, Public and Secret Key

balance

Viewing the balance and topping up safecoins

sned

Sending Safecoins to another user’s SAFE URL

dimit

Other user receives notification that you send him coins in private message!

Tipping someone or yourself haha

Explore the local baby-flemming example SAFE XOR-Urls with cat command

Explore the local baby-flemming example SAFE XOR-Urls with dog command

Commands:
Start - Automatically run when you restart bot and displays a welcome message.
Usage: /start

Help - Shows the current help message.
Usage: /help

Init - Initializes a wallet for Telegram User which can be used to add/send/receive/tip coins.
Usage: /init

Secret - Shows the users wallet details including; Wallet SAFE-URL, Public Key and Secret Key.
Usage: /secret

Balance - Shows the current Safecoin balance of the user’s wallet.
Usage: /balance

Addcoins - Add test coins to your wallet!
Usage: /addcoins [amount]

Send - Use to send Safecoins to other SAFE-URL addresses, without arguments it will display a help message.
Usage: /send [amount] [safe-wallet url]

Tip - Use to send a tip to a reply of a user who also has a SAFE Wallet, without arguments it will display a help message.
Usage: /tip [amount]

Keypair - Obtain keypairs from the CLI.
Usage: /keypair

Cat - View Folders/Files with cat, without arguments will display a help message.
Usage: /cat [NRS-URL or XOR-URL]

Dog - Inspect Folders/Files with dog, without arguments will display a help message.
Usage: /dog [NRS-URL or XOR-URL]

These are all the commands that are currently available to try out.
Thank you for reading, hope you enjoy experimenting with it!

EDIT: The /cat and /dog command are currently not working.
EDIT: Now migrated to new server with more memory! The previous one had too little and caused it to freeze. So in case you experience any restarts, please clean your bot chat history and do a fresh /init!

56 Likes

Very cool!!! I can’t wait to send you a fat tip of real safecoins through the bot! :dragon:

:thankyou:

19 Likes

If someone tip me I will tip you back :wink:

safe://hbyyyybmcfj5fd8xm17y4jiu1pomqkib4yontnydra9jgwb9kgmre3op93

It can’t be typed by username yet, so you’ll have to give me your wallet.

14 Likes

Oh one final note I will move the this to server this evening, just in case it is offline!

15 Likes

Super cool. Nice work @DeusNexus :clap:

23 Likes

Awesome!!

Would be fascinated to hear what was difficult about this, and vice-versa what you thought would be complex but turned out being easy to achieve.

Super exciting to see integrations beginning to happen and the APIs being proven practical in the real world.

22 Likes

Cool stuff! Seeing real-world apps at work is a nice change of pace when news and updates are often more technical/dry. Keep up the good work :slight_smile:

10 Likes

Dude this is brilliant and I Love it.

11 Likes

Absolutely amazing!!! Thank you so much for doing this :smile:

11 Likes

Thank you for putting the time in! Great work!

11 Likes

This is awesome especially for the average user! Great job @DeusNexus :muscle:

11 Likes

Fantastic work! Looks very sharp too!

10 Likes

@DeusNexus great job, have not test the app yet. Have you thought about security for the wallet? Yeah I know it’s early phase…

9 Likes

Yes I will use bcrypt to store all the data in encrypted format. Personally this is not a cold storage wallet by any means, but it’s fun to use it as hot wallet or just small amount for tipping other people.

@everyone Thank you for your warm comments!

10 Likes

Depending on how much developing skills you have it’s not that hard. First I wanted to go with the safe-nodejs but it is not easy to install the npm module since I still get errors while it is build.
The safe-api cli on the other hand works great and is probably the most up-to-date. The commands are passed to the cli and it returns json back which I can use to display the various variable in template strings.

Also I’m still unable to connect to shared-section, probably due to IGD router/connection issues or maybe they put it offline for everyone not sure, but that would be even cooler since you will be able to view your bot balance in your own terminal safe cli.

I think the most work goes in parsing from telegram to variable and then formatting this to cli calls and parsing the response back to form a presentable message.

13 Likes

Thanks again for the great job, friend! I look forward to see support for ERC20 coins for easy swap of small amounts ERC20 coins to Safecoin and vice versa :heart:

2 Likes

The SAFE Network Wallet Bot is online now and using a database for persistence! It’s running on a server now still with local baby-fleming vaults.

I didn’t manage to PUT a test file on the local network and kept receiving an error meaning that the /cat and /dog commands are not working.

The project has also had a good refactor and broken up into modules so it is easier to read in case anyone is interested and can be found here:

9 Likes

I think there are two bots in the channel, hit start on the wrong one and it kicked me from the channel?!

how is your Telegram user name to add you back?

You can send a message to the bot directly at t.me/SafeNetworkWallet_bot

1 Like

Had to upgrade to a server with more memory and have migrated the project to there now. Sorry for the many restarts, best is to clean your bot chat history now and restart. Do a fresh /init and that’s all.

8 Likes