nanqi/ethereum-php

ethereum eth heco erc20 trc20 web3 keysotre bip44 infura etherscan proxy api

0.4.0611 2021-06-10 04:04 UTC

This package is auto-updated.

Last update: 2024-09-11 11:03:22 UTC


README

ethereum eth web3 php keysotre bip44 infura etherscan proxy api

可能遇到的问题

1. 错误:02001003:系统库:fopen:没有这样的进程

在生成私钥时使用generateNewPrivateKey,需要openssl扩展,此时可能会出现上述错误,请查看phpinfo,检查openssl默认配置(位置对应openssl.cnf可能不存在),一般extras文件夹内有此文件,将其复制到指定位置即可。

2. cURL错误60:SSL证书问题:无法获取本地颁发者证书

在发送https请求时,可能会出现上述错误,具体解决办法如下:

  1. 下载https://curl.haxx.se/ca/cacert.pem
  2. 修改php.ini:curl.cainfo=/usr/local/curl/cacert.pem