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

ExternalSmartContractAPIClient client type definition.

Type declaration

  • listContractEvents:function
    • List 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 '0x', 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'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

      Returns AxiosPromise<ContractEventList>

      Throws

      If the request fails.