README.md

This commit is contained in:
sc0Vu 2018-02-21 10:49:42 +08:00
parent 6f18ea8431
commit a43d8bd921

View File

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