Type Alias GetLogsParams<abi, event, abiEvent, abiEvents>

GetLogsParams<abi, event, abiEvent, abiEvents>: Partial<Omit<GetLogsParameters<abiEvent, abiEvents>, "address">> & {
    chainId?: number;
}

Helper type that encapsulates common getLogs parameters without fields like address that are expected to be provided the SDK. See (getLogs)[https://viem.sh/docs/actions/public/getLogs#getlogs]

Type Parameters

  • abi extends Abi
  • event extends ContractEventName<abi>
  • abiEvent extends ExtractAbiEvent<abi, event> = ExtractAbiEvent<abi, event>
  • abiEvents extends readonly AbiEvent[] | readonly unknown[] | undefined = abiEvent extends AbiEvent
        ? [abiEvent]
        : undefined