Retrieves events from a contract based on the provided options.
import { getContractEvents } from "thirdweb";const events = await getContractEvents({ contract: myContract, fromBlock: 123456n, toBlock: 123456n, events: [preparedEvent, preparedEvent2],});
function getContractEvents( options: GetContractEventsOptions<abi, abiEvents, TStrict>,): Promise<GetContractEventsResult<abiEvents, TStrict>>;
The options for retrieving events.
let options: GetContractEventsOptions<abi, abiEvents, TStrict>;
let returnType: ParseEventLogsResult<abiEvents, TStrict>;
A promise that resolves to an array of parsed event logs. Note: toBlock and fromBlock are both inclusive.