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

236
Views
How to get transaction hash of a transaction with web3

am not able to get the transaction record of the transaction my code is below kindly help me

here is the script tag I used

<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" crossorigin="anonymous></script>

<script>
    
    $(document).ready(function(){
        if(window.ethereum) {
            ethereum.request({ method: "eth_requestAccounts" });
        } else {
            console.error("Install Wallet");
        }
    });

    $('#deposit').click(function(){
        var amt = 0;
        amt = parseInt($('#deposit').val()*1000000000000000000);
        const web3 = new Web3(window.ethereum);
        web3.eth.sendTransaction({
            from: "0x0f63128d7274B30C8e30f884DA6469FF3dF2f8d9",
            to: "0x14DC4828b521cF4692Df0CBd4397857Fa267a2B0", 
            value: amt
        }).then(function(err, tx) {
            if (err) { 
                console.log(err); 
            } else {
                console.log(tx);
                document.getElementById("txnStt").innerHTML = tx.status;
            }
        });
    });
    
    
</script> 
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!