All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.provenance.eventstream.stream.clients.TendermintServiceClient.kt Maven / Gradle / Ivy

package io.provenance.eventstream.stream

import io.provenance.eventstream.stream.models.ABCIInfoResponse
import io.provenance.eventstream.stream.models.BlockResponse
import io.provenance.eventstream.stream.models.BlockResultsResponse
import io.provenance.eventstream.stream.models.BlockchainResponse

/**
 * A client designed to interact with the Tendermint RPC API.
 */
interface TendermintServiceClient {
    suspend fun abciInfo(): ABCIInfoResponse
    suspend fun block(height: Long?): BlockResponse
    suspend fun blockResults(height: Long?): BlockResultsResponse
    suspend fun blockchain(minHeight: Long?, maxHeight: Long?): BlockchainResponse
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy