以太坊IPC客户端

ethereum-ipc-client的Python项目详细描述


#以太坊IPC客户端

[![构建状态](https://travis ci.org/pipermerriam/ethereum ipc client.png)(https://travis ci.org/pipermerriam/ethereum ipc client)
[![文档状态](https://readthedocs.org/projects/ethereum-ipc-client/badge/?版本=最新](https://readthedocs.org/projects/ethereum-ipc-client/?徽章=最新)
[![PYPI版本](https://pypip.in/v/ethereum ipc client/badge.png)(https://pypi.python.org/pypi/ethereum ipc client)
[![pypi下载](https://pypip.in/d/ethereum ipc client/badge.png)(https://pypi.python.org/pypi/ethereum ipc client)




ethereum的python client over ipc

##基本用法

假设您有一个运行默认设置的go ethereum节点,那么您应该能够简单地导入和实例化客户机。


```python
>;
>;从eth ipc_client import client
>;>;>client。获取"coinbase()
…"0xD3CDA913DEB6F67967B99D67ACDFA1712C293601'
```


如果使用非默认数据目录运行,则客户端将要求
指定IPC套接字的路径。

```python
>;>;来自ETH IPC客户端导入客户端ereum/geth.ipc"
>>gt;客户端获取CoinBase()
…"0xD3D3CDA913DEB6F67967B99D67D67D677ACDFA1712C293601'
````










<
<




>返回十六进制编码的铸币库。











>;https://github.com/ethereum/wiki/wiki/json-rpc eth_gas price


以整数形式返回wei中的天然气价格

\/>***block**:用于查找的块。

以整数形式返回wei中地址的帐户余额。


查找代码。
**block**:用于查找的块。

返回给定地址的代码。

all

**u from**:用作呼叫源的十六进制编码地址。
**to**:呼叫的合同十六进制编码地址。
**gas**:呼叫的整数gas分配。
**gas**:wei中的整数gas价格。
**value**:wei中发送wi的整数金额。呼叫。
***数据**:呼叫数据。

返回呼叫响应。


用作交易源的地址。
**to**:交易合同的十六进制编码地址。
**gas**:交易的整数gas值。
**gas**:wei中的整数gas值。
**value**:要与交易一起发送的wei中的整数金额。
***数据**:事务数据。

\如果未找到收据,则返回eceipt或"none"。


**transactionHash**:事务的十六进制编码哈希。
**transactionIndex**:块中事务索引位置的整数。
**block hash**:此事务所在块的十六进制编码哈希。
**block number**:此事务所在块的整数块编号。
**cumulativegasused**:此事务在在块中执行。
**gasussed**:仅此特定事务使用的气体量。
**contract address**:创建的合同地址(如果事务是创建的合同),否则为空。
**logs**:此事务生成的日志对象列表/>###` client.get_transaction_by_hash(txn_hash)`

>;https://github.com/ethereum/wiki/wiki/json-rpc;eth_gettransactionbyhash

**txn_hash**:要查找的十六进制编码的事务哈希。

返回事务值的字典,如果没有事务
则返回"无"d.

**hash**:数据,32字节-事务的哈希。
**nonce**:数量-发送方在此之前进行的事务数。
**blockhash**:数据,32字节-此事务所在块的哈希。挂起时为空。
***块号**:数量-此事务所在的块号。挂起时为空。
**transactionindex**:数量-块中事务索引位置的整数。挂起时为空。
**from**:data,20 bytes-发件人地址。
**to**:data,20 bytes-收件人地址。创建合同时为空。
**value**:数量-转入魏的价值。
**gaprice**:数量-发送方在魏提供的天然气价格。
**gas**:数量-发送方提供的天然气。
**input**:data-数据随交易一起发送








>
>;https://github.com/ethereum/wiki/wiki/json-rpc/wiki/json-rpc/ethhub block number



















>;https://github.br/>


>;https://github
>;https://github.com/ethereum/wiki/wiki/json-rpc\eth\u acou网站










u块过滤器()`

>;hhttp://github.com/ethereum/wiki/wiki/json-rpc/json-rpc ethunewblockfilter



35 35 35 35 35新的未决交易






//筛选器(筛选器ID)`

>;https://github.com/ethereum/wiki/wiki/json-rpc/ethereum/wiki/wiki/json-rpc/ethereum/ethereum/wiki/wiki/wiki/wiki/wiki/wiki/json-wiki/json-rpc/json-rpc/json-uninstallfilter filter

































>;https://github.com/ethereum/wiki/wiki/json-rpc eth费费费特博客




/>355; 355; 355; 355; 355; 355; 355; `客户端获取用户日志(从block=none,到block=none,address=none,topics=none)``




;https

;https;https




<35;` client.get_max_gas()`

测试块


返回事务哈希。



`客户端。等待_块(块号,最大等待=60)`

块最多等待`最大等待'秒,轮询IPC服务器,直到看到由`块号'指定的块
。返回块。

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

推荐PyPI第三方库


热门话题
java将变量从一个类发送到另一个类   使用Java Kubernetes客户端Api部署pod   sql如何从oracle检索图像并在java框架中显示   java更改Clover检测类的位置   java安卓位置。getAccuracy()返回1   运行时。不支持Java ME 8上的exec()。还有别的选择吗?   bdd在Java中运行Cucumber时修改CucumberOptions标记   在java中将方法更改为运行时异常   构造函数类中的Java NullPointerException   java SetResizeable(false)不会阻止双击后的帧还原   java智能卡终端移除:SCARD_E_无服务卡例外   Java正则表达式和组   爪哇骑士巡回赛   端口8443上通过ssl的java Spring安全登录在使用http协议的端口8080上无法识别   java如何确定读取文件的哪一行特定行