add contract::getEventLogs
This commit is contained in:
parent
87f8976cc8
commit
0377c6c5dc
@ -185,6 +185,10 @@ $constructorData = $contract->bytecode($bytecode)->getData($params);
|
||||
|
||||
// get function data
|
||||
$functionData = $contract->at($contractAddress)->getData($functionName, $params);
|
||||
|
||||
//get event log data
|
||||
//$fromBlock and $toBlock are optional, default to 'latest' and accept block numbers integers
|
||||
$events = $contract->getEventLogs($eventName, $fromBlock, $toBlock);
|
||||
```
|
||||
|
||||
# Assign value to outside scope(from callback scope to outside scope)
|
||||
|
Loading…
Reference in New Issue
Block a user