Skip to content

Commit

Permalink
Fix package name in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
gabmontes committed Sep 27, 2024
1 parent 31b69c1 commit 45b5de9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ npm install esplora-client
## Usage

```js
import { esploraApiClient } from "esplora-client";
import { esploraClient } from "esplora-client";

const { bitcoin } = esploraApiClient({ network: "testnet" });
const { bitcoin } = esploraClient({ network: "testnet" });
const address = "tb1qw508d6qejxtdg4y5r3zarvary0c5xw7kxpjzsx";
const { chain_stats } = await bitcoin.addresses.getAddress({ address });
const balance = chain_stats.funded_txo_sum - chain_stats.spent_txo_sum;
Expand Down

0 comments on commit 45b5de9

Please sign in to comment.