checkmate
is a Javascript tool that checks membership of events in blocks off-chain.
Inputs:
--abi
- ABI for a smart contract--event
- Name of an event that can be fired by that smart contract--params
- Parameters for the event, in the correct order, provided as a space-separated list.
Output: The encoded event (as represented in Ethereum logs).
Inputs:
--blockhash
- Hash of the block in which the transaction was mined.--txhash
- Hash of the transaction that fired the event.
Output: Merkle proof that the transaction was mined in the block.
Inputs:
--blockhash
- Hash of the block in which the transaction was mined.--txproof
- Merkle proof that the transaction was mined in the block.--logindex
- Index of the log in the transaction.--log
- Encoded event (as represented in Ethereum logs).
Output: True if the event with the given log was fired in the transaction, false otherwise.