Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
docs: added note (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfrosty authored Nov 19, 2024
1 parent eeed93b commit 30b60bb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions content/cookbook/accounts/get-account-balance.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ const { value: balance } = await rpc.getBalance(wallet).send();
console.log(`Balance: ${Number(balance) / LAMPORTS_PER_SOL} SOL`);
```

> As of `v2.0.0`, developers can use the default configurations within the main
> library (`@solana/web3.js`) or import any of its subpackages where better
> composition or more granular control over the imports is desired. See
> [Tree-Shakability](https://github.com/solana-labs/solana-web3.js?tab=readme-ov-file#tree-shakability)
> for more information.
</Tab>

<Tab value="web3.js v1">
Expand Down

0 comments on commit 30b60bb

Please sign in to comment.