[error] provider.getBalance(account) > toLowerCase is not not defined #2827
Replies: 3 comments
-
I used the example from the docs: and that seems to work fine. so how do we pass an account address directly... ethers.js version: 5.5.4 |
Beta Was this translation helpful? Give feedback.
-
Downgraded ethers.js to 4.0.49 and this is working fine. |
Beta Was this translation helpful? Give feedback.
-
What error do you get can you pls share? The code you provided works for me on ethers v5. Can you give more details on the issue? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
provider.getBalance is throwing an internal error, when passing Account Address to retrieve account balance. However, ens names are working fine.
Reproduction steps
Create a new function via mongodb-realm console.
Environment:
This is running in node + serverless environment. the ethers npm library is installed. serverless environment is provided via mongodb-realm which is running on aws (out-of-the-box)
etherr.js v5.5.4
Search Terms
ethers, provider, getbalance, getting-started
Beta Was this translation helpful? Give feedback.
All reactions