Skip to content

Commit

Permalink
Merge pull request #234 from alephium/update-web3-react-doc
Browse files Browse the repository at this point in the history
Update web3-react docs
  • Loading branch information
polarker authored Aug 10, 2023
2 parents 5b3df4d + 134d8ac commit 3fe2b3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/dapps/build-dapp-with-nextjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ After user is connected to the wallet, we can interact with the
Alephium blockchain by using a set of react hooks provided by
[@alephium/web3-react](https://github.com/alephium/alephium-web3/tree/master/packages/web3-react). For
example, getting the [current
account](https://github.com/alephium/alephium-web3/blob/master/packages/web3-react/src/hooks/useAccount.tsx),
connected wallet](https://github.com/alephium/alephium-web3/blob/master/packages/web3-react/src/hooks/useWallet.tsx),
[balance](https://github.com/alephium/alephium-web3/blob/master/packages/web3-react/src/hooks/useBalance.tsx)
and [transaction
status](https://github.com/alephium/alephium-web3/blob/master/packages/web3-react/src/hooks/useTxStatus.tsx),
etc.

It is worth mentioning that the `useBalance` hook also provides the functionality to update the balance.
When a user makes a transaction, you can update the user's balance using `updateBalanceForTx`.
Here is a simple example:

```typescript
Expand Down

0 comments on commit 3fe2b3e

Please sign in to comment.