New answers tagged

0

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(()=>{/...


1

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