'I am getting `userCoins.get is not a function` error when `anchor-earn` tries to get the balance of a wallet
When using AnchorEarn from the @anchor-protocol/anchor-earn module to get a balance
import { AnchorEarn } from '@anchor-protocol/anchor-earn'
const userBalance = await anchorEarn.balance({
currencies: [DENOMS.UST],
});
I am getting the following error:
userCoins.get is not a function
I am using the following script to install it npm i @anchor-protocol/anchor-earn and I am following the sample script in Anchor's website, any idea of what could be happening here?
Solution 1:[1]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Boris |
