Giter Club home page Giter Club logo

eth_block_lottery's Introduction

NFTLegends BlockHash-based lottery

About

The script picks pseudo-random Ethereum winner account from the list using native blockchain randomness source - the blockhash on the given block height.

It uses the “Mersenne Twister” deterministic 623-dimensionally equidistributed uniform pseudorandom number generator, one of the most extensively tested randomizers in existence.

Provenance

  • Block: 12362727 on Ethereum Mainnet #1
  • Estimated Target Date: Mon May 03 2021 17:58:29 GMT

Accounts collected through the form were checked to comply ethereum account format (42-digit hex string starting with '0x'). Duplicates were removed and items sorted alphabetically. See refine_eth_accounts.py script for details.

  • Refined accounts list: accounts.txt
  • Participants total: 13208

How to verify

Just run the lottery.py after the target block got mined + 6 confirmations passed.

pip install -r requirements.txt
python3 lottery.py

The output:

Load accounts from accounts.txt...DONE
Sanity checks...DONE
Total accounts loaded: 13208
Connect to Web3 provider...DONE
Hash of block 12361500 is 0x6d9987ca8fbca75658086c8678c04eccb6cfff3666afd7e11d9d2bf81004ada3
See on Etherscan https://etherscan.io/block/12361500
The winner is: <Winner's Account>

eth_block_lottery's People

Contributors

nftlegends avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.