Python library to Etheroll smart contract
Project description
pyetheroll
Python library to Etheroll smart contract
Usage
Simply set bet size, chances and wallet settings before rolling:
from pyetheroll.etheroll import Etheroll
etheroll = Etheroll()
bet_size_ether = 0.1
chances = 50
wallet_path = 'wallet.json'
wallet_password = 'password'
transaction = etheroll.player_roll_dice(
bet_size_ether, chances, wallet_path, wallet_password)
It's also possible to set different contract address and chain ID:
from pyetheroll.constants import ChainID
from pyetheroll.etheroll import Etheroll
chain_id = ChainID.ROPSTEN
contract_address = '0xe12c6dEb59f37011d2D9FdeC77A6f1A8f3B8B1e8'
etheroll = Etheroll(chain_id, contract_address)
Find out more in docs/Examples.md.
Install
pip install pyetheroll
pip install --process-dependency-links \
https://github.com/AndreMiras/pyetheroll/archive/develop.zip
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyetheroll-20190321.tar.gz
(9.2 kB
view details)
Built Distribution
File details
Details for the file pyetheroll-20190321.tar.gz
.
File metadata
- Download URL: pyetheroll-20190321.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a0dfb8b49c5d081ec4a02c5a83386994831cfb839b3b2978336fbe1a3178289 |
|
MD5 | 278afda0275efbe982512520e6c90141 |
|
BLAKE2b-256 | 2e0fce4725f3e10cc098b7e83d5c104311c260cc63553ae98a44324db52d6aa9 |
File details
Details for the file pyetheroll-20190321-py3-none-any.whl
.
File metadata
- Download URL: pyetheroll-20190321-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0270c8cf96b751acc25ab8746151667aad643b1832ac6ffc2373d60b799efc34 |
|
MD5 | 8c6064b1410ea309a31aa13196f7314a |
|
BLAKE2b-256 | 3a9044077dd77e14cac32a89b0c72212cafa5913a5c5c74cd5c02ecdc997be13 |