1

I have this method where I make a transaction to the network rinkeby, but to know how I can get the hash of the transaction made. I am using java with web3j, in addition to using infura to connect to the network.


public void CrearCertificado(CareerCertificate careercertificate, String id, BigInteger fecha, String nombre, String rutalumno, String instituto, String rutinstituto, String titulo,
                                                        String totalhash, String fechatitulacion, String registronumber, String codigoV ) throws Exception{

careercertificate .createCertificate(id, fecha, nombre, rutalumno, instituto, rutinstituto, titulo, totalhash, fechatitulacion, registronumber, codigoV ) .send(); }
1

Did you try this?

careercertificate
    .createCertificate(id, fecha, nombre, rutalumno, instituto, rutinstituto, titulo, totalhash, fechatitulacion, registronumber, codigoV )
    .send().getTransactionHash()
  • Yes, I started reading the documentation and saw some examples and everything went well. Thanks for answering – Nicolas Flores Muñoz Jan 6 at 17:48
  • How could I get the input data through a txHash? @ivicaa – Nicolas Flores Muñoz Jan 7 at 23:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.