New answers tagged


Finally found an answer to my problem: async function creatChildContract(){ this.factoryContract.createChild() .then((log)=>{ console.log(log.hash); // here you can access the transaction hash before it is mined // you do not have to wait, once the transaction is confirmed, the hash is available. }); .catch(()=>{/...


I guess I found what you want But not sure. async function creatChildContract(){ tx = await this.factoryContract.createChild(); tx.hash //returns hash of the transaction which user just signed. }

Top 50 recent answers are included