Skip to content

Commit 11328b2

Browse files
committed
fix(wrong-method): Merge master
2 parents 7b6d723 + 994cdf3 commit 11328b2

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

docs/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [web3data-js](https://github.com/web3data/web3data-js#readme) *0.5.18*
1+
# [web3data-js](https://github.com/web3data/web3data-js#readme) *0.6.18*
22

33
> A javascript wrapper for accessing amberdata's public API.
44

docs/examples.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,27 @@
44

55
Here's a few examples showing how to get basic bits of blockchain & market data with Web3data.
66

7+
### Address balances
8+
79
<pre class="runkit-element">
810
const Web3Data = require('web3data-js');
911
const w3d = new Web3Data('YOUR_API_KEY');
1012

13+
// Get the balance of a single address
14+
const balance = w3d.address.getBalance('0x06012c8cf97bead5deae237070f9587f8e7a266d')
15+
16+
// Get the balance of a single address including the value in USD
17+
const balanceAndPrice = w3d.address.getBalance('0x06012c8cf97bead5deae237070f9587f8e7a266d', {includePrice: true})
18+
19+
// Get the balance of an address and include token balances
20+
const balances = w3d.address.getBalance('0x06012c8cf97bead5deae237070f9587f8e7a266d', {includeTokens: true})
21+
22+
// Get the balance of multiple addresses
23+
const multipleBalances = w3d.address.getBalance(['0x06012c8cf97bead5deae237070f9587f8e7a266d', '0xce9af648a831ddf0cd6d05e3fe5787b3c7987246'])
24+
25+
// Get the balance + token balances + pricing data for multiple addresses
26+
const multipleBalancesPlus = w3d.address.getBalance(['0x06012c8cf97bead5deae237070f9587f8e7a266d', '0xce9af648a831ddf0cd6d05e3fe5787b3c7987246'], {includeTokens: true, includePrice: true})
27+
1128
</pre>
1229

1330
### Latest and Historical Data

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3data-js",
3-
"version": "0.5.18",
3+
"version": "0.6.18",
44
"description": "A javascript wrapper for accessing amberdata's public API.",
55
"main": "index.js",
66
"browser": "dist/web3data.min.js",

0 commit comments

Comments
 (0)