Update README.md
This commit is contained in:
parent
3bebea2dad
commit
918b457ffe
|
@ -72,13 +72,13 @@ myObservable$.subscribe(console.dir)
|
|||
```
|
||||
|
||||
#### Tracking a contract balance, and a account balance
|
||||
Track balance changes in ETH or Tokens by specifying the token address. By default it will track ETH balance.
|
||||
Track balance changes in ETH or Tokens by optionally specifying the token address. By default it will track ETH balance.
|
||||
|
||||
```js
|
||||
|
||||
const myObservable$ = myContract.trackBalance([tokenAddress])
|
||||
|
||||
or
|
||||
// OR
|
||||
|
||||
const myObservable$ = subspace.trackBalance(address, [tokenAddress])
|
||||
```
|
||||
|
@ -177,4 +177,4 @@ const Subspace = require('./dist/node.js');
|
|||
The browser version can be found at `dist/browser.js`. You can also check the examples in `test/`.
|
||||
|
||||
## License
|
||||
MIT
|
||||
MIT
|
||||
|
|
Loading…
Reference in New Issue