• ContractEventsApi - factory interface

    Parameters

    • Optional configuration: Configuration
    • Optional basePath: string
    • Optional axios: AxiosInstance

    Returns {
        listContractEvents(networkId, protocolName, contractAddress, contractName, eventName, fromBlockHeight, toBlockHeight, nextPage?, options?): AxiosPromise<ContractEventList>;
    }

    • listContractEvents:function
      • Retrieve events for a specific contract

        Parameters

        • networkId: string

          Unique identifier for the blockchain network

        • protocolName: string

          Case-sensitive name of the blockchain protocol

        • contractAddress: string

          EVM address of the smart contract (42 characters, including &#39;0x&#39;, in lowercase)

        • contractName: string

          Case-sensitive name of the specific contract within the project

        • eventName: string

          Case-sensitive name of the event to filter for in the contract&#39;s logs

        • fromBlockHeight: number

          Lower bound of the block range to query (inclusive)

        • toBlockHeight: number

          Upper bound of the block range to query (inclusive)

        • Optional nextPage: string

          Pagination token for retrieving the next set of results

        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<ContractEventList>

        Summary

        List contract events

        Throws

    Export