python库到etheroll智能合约

etheroll的Python项目详细描述


Pyetheroll

Build StatusPyPI versionDocumentation Status

python库到etheroll智能合约

用法

只需在滚动前设置赌注大小、机会和钱包设置:

frompyetheroll.etherollimportEtherolletheroll=Etheroll()bet_size_ether=0.1chances=50wallet_path='wallet.json'wallet_password='password'transaction=etheroll.player_roll_dice(bet_size_ether,chances,wallet_path,wallet_password)

还可以设置不同的合同地址和链ID:

frompyetheroll.constantsimportChainIDfrompyetheroll.etherollimportEtherollchain_id=ChainID.ROPSTENcontract_address='0xe12c6dEb59f37011d2D9FdeC77A6f1A8f3B8B1e8'etheroll=Etheroll(chain_id,contract_address)

docs/Examples.md中了解更多信息。

安装

Latest stable release

pip install pyetheroll

Development branch

pip install --process-dependency-links \
https://github.com/AndreMiras/pyetheroll/archive/develop.zip

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何强制用户在允许访问活动之前处理对话框?我的许可证代码怎么了?   java ArraysList作为JSON   mysql如何在java中创建包含多个可选where子句的搜索语句?   java如何让Apache Camel在“直接”路径的末尾删除文件?   使用socket在两个Androids之间进行java实时数据传输。IO(websocket)和4G   如何在java中实现两个CORBA服务器之间的通信   会话树xml表示为java对象   java Skype4Java编号swtwin323325   java RecyclerView getAdapterPosition()不工作:第一次单击返回正确位置,第二次单击返回1   java在$TOMCAT/conf/context上为JNDI设置资源。xml   java为什么第二个矩形冲突在第一个矩形冲突时不起作用?   JScrollPane上的java JTextArea未出现在JPanel上   java如何将实现的PriorityQueue打印为字符串?   jpa使用Jersey更新用户角色RESTJava(JAXRS)