1.0.3 • Published 2 years ago

events-from-hash v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

��# events-from-hash

A function that fetches event info from a transaction hash.

Note: Only indexed params can be filtered. Read more here.

Install

npm i events-from-hash wagmi @ethersproject/abi

Example

event Transfer(address indexed src, address indexed dst, uint val)

const events = await getEventsFromHash({
    name: 'Transfer',
    args: ['0xca...'], // The source wallet address
    hash: '0x...', // The transaction hash
    addressOrName: '0x...', // The contract's address
    contractInterface: contractAbi,
})
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago