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

150
Vistas
I want to interact with my smart contract using Ledger Nano X and javascript

I keep getting the error that 'TypeError: Eth is not a constructor' every time I try to instantiate. Not sure what the issue is, I am using nodejs and have tried to start a new directory and reinstall the library and it didn't work. Does anyone know how to fix this?

Here is my code:

import TransportNodeHid from "@ledgerhq/hw-transport-node-hid";
import Eth from "@ledgerhq/hw-app-eth";

async function lol() {
  const transport = await TransportNodeHid.default.create();
  const eth = new Eth(transport);
  const result = await eth.getAddress("44'/60'/0'/0/0");
  console.log(result);
}

lol();
about 4 years ago · Juan Pablo Isaza
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