Ethereum PHP
PHP interface to Ethereum JSON-RPC API.
ethereum-client-workaround-helpers.php File Reference

Go to the source code of this file.

Functions

 eth_workaround_eth_coinbase ($val)
 
 eth_workaround_net_listening ($val)
 
 eth_workaround_ethereum_datatype_transaction (array $values)
 
 eth_workaround_ethereum_datatype_filterchange (array $values)
 

Detailed Description

Workarounds for specific Ethereum clients.

Some client return not exactly what you expect. Hopefully the clients will get fixed and we can remove the workarounds over time.

Definition in file ethereum-client-workaround-helpers.php.

Function Documentation

◆ eth_workaround_eth_coinbase()

eth_workaround_eth_coinbase (   $val)

Workaround for eth_coinbase().

In some cases Ethereum Clients (like geth, parity etc.) have differing return values.

Definition at line 16 of file ethereum-client-workaround-helpers.php.

◆ eth_workaround_ethereum_datatype_filterchange()

eth_workaround_ethereum_datatype_filterchange ( array  $values)

Workaround for Ethereum.

Fixing the "data" address field might be "0x" instead of null.

Definition at line 61 of file ethereum-client-workaround-helpers.php.

◆ eth_workaround_ethereum_datatype_transaction()

eth_workaround_ethereum_datatype_transaction ( array  $values)

Workaround for Ethereum.

Fixing the "to" address field might be "0x0" instead of null.

Definition at line 48 of file ethereum-client-workaround-helpers.php.

◆ eth_workaround_net_listening()

eth_workaround_net_listening (   $val)

Workaround for net_listening().

In some cases Ethereum Clients (like geth, parity etc.) have differing return values.

Definition at line 33 of file ethereum-client-workaround-helpers.php.