GTW: Guess the Witness - A witness guessing bot

in utopian-io •  6 years ago  (edited)

New Projects

  • What is the project about?

The overall goal of this project is to create awareness what witnesses on STEEM are, what their basic duty is and to encourage users to investigate more, how the basic principles of STEEM are working.
Gambling is in all our blood, so we take it to the blockchain.
Every block is created and signed by a witness. Every 3 seconds a new block is made.
The order with which the witnesses are chosen is randomly, Top 20 witnesses will make one block every minute, the rest, below rank 20 are chosen randomly, weighted with their voters complete VESTS.

It is not possible for a normal user to predict, who the next witness will be. For that he would need some deeper knowledge of the blockchain. This is one goal of this application.

The gambling principles are easy:
A user transfers 0.002 SBD to the bot and writes the name of the witness guess in memo.
this transaction will be written in a block.
The bot looks at the head of the block, where the transaction is in and reads out the witness name.
If the guess in the memo is wrong, the bot will transfer 0.001 SBD back to the user with block number, guessed witness and real witness in memo.
Was the guess right, the bot will send back 0.021 SBD and a congratulation with block number and witness name in memo.
The chances to guess a Top 20 witness are 1/21. So the bot itself should not make any profits.
The bot account had 2 SBD as initial cash. Per date of writing this article, there are 2.014 SBD in its account.
The implementation of this application was realised under the bot username @gtw and can be found here: https://steemit.com/@gtw

  • Technology Stack

The bot is written in Python using the steem-python library. It needs Python3.6 to run, there are no plans to port this to different Python versions or the beem library.

  • Roadmap

The bot is currently in a stable phase. There are no planned features for the near future.
Once it runs for a longer time, more betting options could be added.

  • How to contribute?

Suggestions of features and bug fixing is always welcome.

  • Repository

The repository for this bot can be found here: isnochys/gtw



Posted on Utopian.io - Rewarding Open Source Contributors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

This post has been upvoted by @millibot with 25.0%!
Thank you for giving your trust and witness vote to my creator @isnochys!
More profits? 100% Payout! Delegate some SteemPower to @millibot: 1 SP, 5 SP, 10 SP, custom amount
You like to bet and win 20x your bid? Have a look at @gtw and this description!

This post has been upvoted by @minibot with 22.2%!
Thank you for giving your trust and witness vote to my creator @isnochys!
More profits? 100% Payout! Delegate some SteemPower to @minibot: 1 SP, 5 SP, 10 SP, custom amount
You like to bet and win 20x your bid? Have a look at @gtw and this description!

Hey @isnochys I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Is any one able to recreate the bot if they so choose?

Yes. Just look in the repository

Are you able to jump on Discord ?

_