Function: getEmittedEvents()
getEmittedEvents(
receipt,contractAddress?):EMITTED_EVENT[]
Defined in: src/utils/events/index.ts:309
Extract and prepare emitted events from a transaction receipt Optionally filters by contract address and enriches with transaction/block metadata
Parameters
receipt
Transaction receipt containing events and metadata
events?
EVENT[]
transaction_hash
string
block_hash?
string
block_number?
number
contractAddress?
string
Optional contract address to filter events by
Returns
Emitted events with transaction and block context, optionally filtered
Example
// Get all emitted events
const allEvents = getEmittedEvents(receipt);
// Get events from specific contract
const contractEvents = getEmittedEvents(receipt, contractAddress);