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

133
Vistas
how to import web3.utils.fromWei Library in my javascript simple code

I want to use web3.utils.fromWei library https://web3js.readthedocs.io/en/v1.2.11/index.html, but I don't know how to import it in my code

I'm writing the code directly inside my website/host because I'm not an expert in dealing with local servers or Visual Studio Code react

var max = 1000000000000000000;
var dead = 5655521545895245645123154;

max = web3.utils.fromWei(max, 'ether');
dead = web3.utils.fromWei(dead, 'ether');

const total = max - dead;
document.getElementById('total ').innerHTML =total ;
<html lang="en">
<head>
  <meta charset="utf-8">
<title>Page Title</title>
 <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div >
    <div class="w3-display-middle">
      <span id="total"></span>
    </div>
</div>
</body>
</html>

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