allmediaindo/infura
Composer 安装命令:
composer require allmediaindo/infura
包简介
infura client
README 文档
README
infura client.
Installing
$ composer require allmediaindo/infura
Usage
<?php /** * Infura constructor. * * @param string $network Ethereum network 'rinkenby', 'ropsten', 'mainnet', etc * @param string $projectId Your Infura project 'PROJECT ID' */ $client = new Infura($network, $projectId);
To invoke infura.io methods just call the method
example:
$client->eth_blockNumber();
return
[
"jsonrpc" => "2.0",
"id" => 1,
"result" => "0x65a8db",
];
example:
$client->eth_getBlockTransactionCountByHash("0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35");
return
[
"jsonrpc" => "2.0",
"id" => 1,
"result" => "0x50",
];
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
License
MIT
统计信息
- 总下载量: 1.59k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-02-01