# Error Get Balance

**URL:** <https://forum.fuel.network/t/error-get-balance/5458>\
**Category:** Sway RFCs\
**Created:** [June 1, 2024, 5:28pm UTC](https://forum.fuel.network/t/error-get-balance/5458 "2024-06-01T17:28:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roomit-xyz](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/roomit-xyz/32/2970_2.png) [@roomit-xyz](https://forum.fuel.network/u/roomit-xyz)\
**Post date:** [June 1, 2024, 5:28pm UTC](https://forum.fuel.network/t/error-get-balance/5458/1 "2024-06-01T17:28:49Z")

</div>

Dear Dev,

I tried game sway, I got error when connecting with wallet.

ncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘getBalance’)  
at ShowCoins.tsx:26:43  
at ShowCoins.tsx:29:5  
at os (react-dom.production.min.js:244:332)  
at vc (react-dom.production.min.js:286:111)  
at react-dom.production.min.js:282:391  
at j (scheduler.production.min.js:13:203)  
at MessagePort.S (scheduler.production.min.js:14:128)

Is this critical?

---

<div class="post-metadata">

**Author:** ![nick](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/nick/32/2330_2.png) [@nick](https://forum.fuel.network/u/nick)\
**Post date:** [June 2, 2024, 3:23pm UTC](https://forum.fuel.network/t/error-get-balance/5458/2 "2024-06-02T15:23:25Z")

</div>

Hi @roomit-xyz ,

Can you provide more information on the exact code you are trying to run (link or gist), your toolchain versions `fuelup show` (as requested for all forum questions) so we can help answer your question?
