Update README.md
This commit is contained in:
parent
168a31ece4
commit
2942286610
14
README.md
14
README.md
@ -157,6 +157,20 @@ $personal->provider->execute(function ($err, $data) {
|
||||
// do something
|
||||
});
|
||||
```
|
||||
contract
|
||||
```php
|
||||
$contract->batch(true);
|
||||
foreach ($accounts as $account) {
|
||||
$contract->call('balanceOf', $account);
|
||||
}
|
||||
|
||||
$contract->eth->provider->execute(function ($err, $data) use ($accounts) {
|
||||
if ($err !== null) {
|
||||
throw new $err;
|
||||
}
|
||||
print_r($data);
|
||||
});
|
||||
```
|
||||
|
||||
### Contract
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user