Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update web3-react docs #234

Merged
merged 2 commits into from
Aug 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading