library geth-php
PHP wrapper for Geth JSON RPC
lajosbencz/geth-php
PHP wrapper for Geth JSON RPC
- Thursday, September 14, 2017
- by lazos
- Repository
- 1 Watchers
- 1 Stars
- 154 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 1 Open issues
- 5 Versions
- 45 % Grown
GETH-PHP
PHP wrapper for Geth JSON-RPC, (*1)
INSTALL
composer require lajosbencz/geth-php
USAGE
$geth = new \GethApi\GethApi([
// Geth JSON-RPC version
'version' => '2.0',
// Host part of address
'host' => '127.0.0.1',
// Port part of address
'port' => 8545,
// Return results as associative arrays instead of objects
'assoc' => true,
]);
$version = $geth->web3_getVersion();
$accounts = $geth->eth_accounts();
foreach($accounts as $account) {
echo $account, ': ', $geth->eth_getBalance($account, 'latest'), PHP_EOL;
}
TODO
- Parallel requests
- Implement experimental PUB/SUB
dev-master
9999999-dev
PHP wrapper for Geth JSON RPC
Sources
Download
MIT
by
Lajos Bencz
0.2.1
0.2.1.0
PHP wrapper for Geth JSON RPC
Sources
Download
MIT
by
Lajos Bencz
0.2.0
0.2.0.0
PHP wrapper for Geth JSON RPC
Sources
Download
MIT
by
Lajos Bencz
0.1.1
0.1.1.0
PHP wrapper for Geth JSON RPC
Sources
Download
MIT
by
Lajos Bencz
0.1.0
0.1.0.0
PHP wrapper for Geth JSON RPC
Sources
Download
MIT
by
Lajos Bencz