parseEventLogs

Parses logs and returns the corresponding events.

Example

import { parseEventLogs } from "thirdweb";
const events = parseEventLogs({
logs,
events: [preparedEvent, preparedEvent2],
});
function parseEventLogs(
options: ParseEventLogsOptions<abiEvents, TStrict>,
): ParseEventLogsResult<abiEvents, TStrict>;

Parameters

The options for parsing logs.

Type

let options: ParseEventLogsOptions<abiEvents, TStrict>;

Returns

let returnType: ParseEventLogsResult<abiEvents, TStrict>;

The parsed events.