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

237
Vistas
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
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