Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

154
Vistas
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?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Use the following line to install anchor-earn:

npm install -S @anchor-protocol/anchor-earn@2.0.0-alpha1
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda