let abiJson =; let contract = new ethers.Contract(address, abiJson, web3);
// 监听合约
let inFilter = contract.filters.Transfer(null, '');
contract.on(inFilter, (from, to, value) => {
})
请教各位大佬,监听合约Transfer事件,这个事件触发时,交易是否已确认状态?
第二有没有办法拿到这笔交易hash值。
let abiJson =;
let contract = new ethers.Contract(address, abiJson, web3);
// 监听合约
let inFilter = contract.filters.Transfer(null, '');
contract.on(inFilter, (from, to, value,event) => {
console.log(event.transactionHash);
})