Update README.md

This commit is contained in:
代码之美 2020-09-01 00:04:58 +08:00 committed by GitHub
parent 168a31ece4
commit 2942286610
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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