You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have tried getting the balance or currency but instead am getting TypeError: undefined is not a function in this line const account = await api.account('token'); What could i be doing wrong?
The text was updated successfully, but these errors were encountered:
I have the following code
` async function main() {
try {
const account = await api.account('token');
const { balance, currency } = account;
i have tried getting the balance or currency but instead am getting TypeError: undefined is not a function in this line const account = await api.account('token'); What could i be doing wrong?
The text was updated successfully, but these errors were encountered: