hydrarulz/ethereum-php-lib

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

The PHP library for requesting data from an Ethereum client through JSON RPC by HTTP.

dev-master 2017-02-16 08:13 UTC

This package is not auto-updated.

Last update: 2021-11-22 01:35:32 UTC


README

A PHP interface to the geth JSON-RPC API. All documented API functions are present.

Usage

// include the class file
require 'ethereum.php';

// create a new object
$ethereum = new Ethereum('127.0.0.1', 8545);

// do your thing
echo $ethereum->net_version();

See test/test.php for a complete example.

Function documentation

For documentation on functionality, see the Ethereum RPC documentation