# 区块链接口文档 **Repository Path**: a_large_mulberry/blockchain_interface_document ## Basic Information - **Project Name**: 区块链接口文档 - **Description**: 区块链接口货币查询 - **Primary Language**: PHP - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2019-12-20 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 区块链接口文档 #### currency 方便区块链接口货币查询 * PHP >= 7.0.0 (推荐PHP7.1版本) * Apache 或 Nginx * PDO PHP Extension * MBstring PHP Extension * CURL PHP Extension * gmp PHP Extension * mbstring PHP Extension * openssl PHP Extension * scrypt PHP Extension * Composer (可选,用于管理第三方扩展包) * 先安装扩展方可下载PHP依赖包 ## 进入目录,下载PHP依赖包 composer install ## 错误解决方案 ### 如果连接节点出现这个类似的错误 cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) 从 https://curl.haxx.se/docs/caextract.html 上下载cacert.pem 下载最新的就行 放在该目录下G:\phpstudy_pro\Extensions\php\php7.3.4nts\extras\ssl\cacert.pem 打开php.ini 搜索curl.cainfo 与 openssl.cafile,将其配置成你自己cacert.pem文件的路径 curl.cainfo= "G:\phpstudy_pro\Extensions\php\php7.3.4nts\extras\ssl\cacert.pem " openssl.cafile= "G:\phpstudy_pro\Extensions\php\php7.3.4nts\extras\ssl\cacert.pem" ### 使用web3连接节点请求超时错误 cURL error 28: Operation timed out after 1000 milliseconds with 0 out of 0 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) 去该文件下修改超时时间, vendor\sc0vu\web3.php\src\RequestManagers\HttpRequestManager.php 默认是1秒,看自己需要设置秒数 $timeout = 1 public function __construct($host, $timeout = 1) { parent::__construct($host, $timeout); $this->client = new Client; } # Invalid characters 错误 检查下你的私钥是否正确,长度64位