Ethereum SmartContract API for PHP.
Definition at line 16 of file SmartContract.php.
◆ __construct()
__construct |
( |
array |
$abi, |
|
|
string |
$contractAddress, |
|
|
Ethereum |
$eth |
|
) |
| |
SmartContract constructor.
- Parameters
-
| $abi | array Smart contract ABI. |
string | $contractAddress | Address of the contract at the network given in $eth. |
\Ethereum\Ethereum | $eth | Instance of Ethereum connected to a Ethereum client. |
- Exceptions
-
Definition at line 56 of file SmartContract.php.
◆ __call()
__call |
( |
string |
$method, |
|
|
array |
$args |
|
) |
| |
Calling contract functions.
- Parameters
-
string | $method | Name of the Smart contract method you wish to call. |
| $args | Arguments provided. |
- Exceptions
-
- Todo:
- Maybe we need a smarter default block param handling here.
Definition at line 79 of file SmartContract.php.
◆ createFromTruffleBuildDirectory()
static createFromTruffleBuildDirectory |
( |
|
$path, |
|
|
|
$web3 = null , |
|
|
|
$networkId = null |
|
) |
| |
|
static |
◆ createMetaFromTruffle()
static createMetaFromTruffle |
( |
|
$filePath | ) |
|
|
static |
◆ getAddress()
◆ processLog()
- Parameters
-
\Ethereum\DataType\FilterChange | $filterChange | |
- Exceptions
-
Definition at line 104 of file SmartContract.php.
◆ $events
Contract Events array in the form $events[<topic hex>="">]= .
Definition at line 38 of file SmartContract.php.
The documentation for this class was generated from the following file: