Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Set minimum stability to dev

Then
```
composer require sc0vu/web3.php dev-master
composer require haohetao/web3.php dev-master
```

Or you can add this line in composer.json

```
"sc0vu/web3.php": "dev-master"
"haohetao/web3.php": "dev-master"
```


Expand Down Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "sc0vu/web3.php",
"name": "haohetao/web3.php",
"description": "Ethereum web3 interface.",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "sc0Vu",
"email": "alk03073135@gmail.com"
"name": "hetao",
"email": "haohetao@gmail.com"
}
],
"require": {
Expand Down
Loading