current position:Home>Event filtering in web3js

Event filtering in web3js

2022-02-03 22:50:51 Q & A of Denglian community

bosses , I want to get through the event filter Filter out the events triggered by a specific address . The event structure is shown in the figure below image.png I am here web3js It's written in , But filtering doesn't work .image.png How should I write , This is a web3js Writing in Chinese documents image.pngimage.png




Take the answer 1:

filter Need is defined in the contract Event Parameters of , And the parameter is indexed ( Indexes ) Of .




copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032250499748.html

Random recommended