README.md

This commit is contained in:
sc0Vu 2017-12-19 12:07:56 +08:00
parent 4c32a35f11
commit 5e90134dbc

View File

@ -30,8 +30,9 @@ $web3 = new Web3('http://localhost:8545');
```
use Web3\Web3;
use Web3\Providers\HttpProvider;
use Web3\RequestManagers\HttpRequestManager;
$web3 = new Web3(new HttpProvider('http://localhost:8545'));
$web3 = new Web3(new HttpProvider(new HttpRequestManager('http://localhost:8545')));
```
### You can use callback to each rpc call: