0

Using Web3, are the parameters fromBlock and toBlock of getPastEvents() and events.MyEvent() inclusive or exclusive of the block number?

0

It is inclusive.

toBlock, if not specified, defaults to latest, which means it will give you data up to the latest block the node has confirmed.

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.