Skip to content

A function that fetches event info from a transaction hash.

Notifications You must be signed in to change notification settings

sumicet/events-from-hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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,
})

About

A function that fetches event info from a transaction hash.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published