Type alias GetContractEventsParameters<TAbi, TEventName, TStrict, TFromBlock, TToBlock>

GetContractEventsParameters<TAbi, TEventName, TStrict, TFromBlock, TToBlock>: {
    abi: TAbi;
    address?: Address | Address[];
    args?: TEventName extends string
        ? GetEventArgs<TAbi, TEventName>
        : undefined;
    eventName?: InferEventName<TAbi, TEventName>;
    strict?: TStrict;
} & ({
    blockHash?: never;
    fromBlock?: TFromBlock | BlockNumber | BlockTag;
    toBlock?: TToBlock | BlockNumber | BlockTag;
} | {
    blockHash?: Hash;
    fromBlock?: never;
    toBlock?: never;
})

Type Parameters

  • TAbi extends Abi | readonly unknown[] = readonly unknown[]

  • TEventName extends string | undefined = string | undefined

  • TStrict extends boolean | undefined = undefined

  • TFromBlock extends BlockNumber | BlockTag | undefined = undefined

  • TToBlock extends BlockNumber | BlockTag | undefined = undefined

Type declaration

  • abi: TAbi

    Contract ABI.

  • Optional address?: Address | Address[]

    The address of the contract.

  • Optional args?: TEventName extends string
        ? GetEventArgs<TAbi, TEventName>
        : undefined
  • Optional eventName?: InferEventName<TAbi, TEventName>

    Contract event.

  • Optional strict?: TStrict

    Whether or not the logs must match the indexed/non-indexed arguments on event.

    Default

    false
    

Generated using TypeDoc