Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

131
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!