nanqi / ethereum-php
ethereum eth heco erc20 trc20 web3 keysotre bip44 infura etherscan proxy api
Installs: 508
Dependents: 0
Suggesters: 0
Security: 0
Stars: 41
Watchers: 2
Forks: 28
Open Issues: 0
Requires
- php: >=7.2
- ext-bcmath: *
- ext-gmp: *
- ext-json: *
- ext-openssl: *
- furqansiddiqui/bip39-mnemonic-php: ^0.1.2
- guzzlehttp/guzzle: ^6.0 || ^7.0
- kornrunner/keccak: ^1.0
- league/event: ^2.2
- nanqi/minter-php-bip-44: ^1.0
- phpseclib/phpseclib: ~2.0.11
- simplito/elliptic-php: ^1.0
- sop/asn1: ^3.3
- sop/crypto-encoding: ^0.2.0
- sop/crypto-types: ^0.2.1
- web3p/ethereum-tx: ^0.3.4
Requires (Dev)
- mockery/mockery: ^1.0
- phpunit/phpunit: ^7.5.4
README
ethereum eth web3 php keysotre bip44 infura etherscan proxy api
可能遇到的问题
1. error:02001003:system library:fopen:No such process
生成私钥时generateNewPrivateKey
,需要openssl扩展,此时可能会如上错误,
查看phpinfo,Openssl default config,位置对应openssl.cnf
可能不存在,
一般extras
文件夹内有此文件,拷贝到指定位置即可。
2. cURL error 60: SSL certificate problem: unable to get local issuer certificate
在发送https请求时,可能会报如上错误,具体解决办法如下:
- 下载https://curl.haxx.se/ca/cacert.pem
- 修改php.ini:curl.cainfo=/usr/local/curl/cacert.pem