We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fde5d3 commit 604c94dCopy full SHA for 604c94d
packages/web3/README.md
@@ -7,7 +7,7 @@
7
8
```yaml
9
10
- web3: ^0.0.1
+ web3: ^1.0.5
11
12
```
13
@@ -16,9 +16,25 @@
16
```dart
17
import 'package:web3/web3.dart';
18
19
+void main() async {
20
+ const rpcUrl = 'https://kovan.infura.io/v3/your_api_key';
21
+
22
+ /// wallet client:
23
+ var client = EthWallet(url: rpcUrl);
24
25
+ /// hd wallet:
26
+ var hd = await client.genHDWallet();
27
28
+ var address = 'your_wallet_address';
29
+ var result = await client.getBalance(address: address);
30
+ print('get balance : $result');
31
+}
32
33
34
35
36
+- [unit test](./test)
37
38
39
## ref:
40
0 commit comments