main.org.onflow.flow.sdk.AsyncFlowAccessApi.kt Maven / Gradle / Ivy
package org.onflow.flow.sdk
import com.google.protobuf.ByteString
import java.util.concurrent.CompletableFuture
interface AsyncFlowAccessApi {
fun ping(): CompletableFuture>
fun getLatestBlockHeader(sealed: Boolean = true): CompletableFuture>
fun getBlockHeaderById(id: FlowId): CompletableFuture>
fun getBlockHeaderByHeight(height: Long): CompletableFuture>
fun getLatestBlock(sealed: Boolean = true): CompletableFuture>
fun getBlockById(id: FlowId): CompletableFuture>
fun getBlockByHeight(height: Long): CompletableFuture>
fun getCollectionById(id: FlowId): CompletableFuture>
fun sendTransaction(transaction: FlowTransaction): CompletableFuture>
fun getTransactionById(id: FlowId): CompletableFuture>
fun getTransactionResultById(id: FlowId): CompletableFuture>
@Deprecated(
message = "Behaves identically to getAccountAtLatestBlock",
replaceWith = ReplaceWith("getAccountAtLatestBlock")
)
fun getAccountByAddress(addresss: FlowAddress): CompletableFuture>
fun getAccountAtLatestBlock(addresss: FlowAddress): CompletableFuture>
fun getAccountByBlockHeight(addresss: FlowAddress, height: Long): CompletableFuture>
fun executeScriptAtLatestBlock(script: FlowScript, arguments: Iterable = emptyList()): CompletableFuture>
fun executeScriptAtBlockId(script: FlowScript, blockId: FlowId, arguments: Iterable = emptyList()): CompletableFuture>
fun executeScriptAtBlockHeight(script: FlowScript, height: Long, arguments: Iterable = emptyList()): CompletableFuture>
fun getEventsForHeightRange(type: String, range: ClosedRange): CompletableFuture>>
fun getEventsForBlockIds(type: String, ids: Set): CompletableFuture>>
fun getNetworkParameters(): CompletableFuture>
fun getLatestProtocolStateSnapshot(): CompletableFuture>
fun getTransactionsByBlockId(id: FlowId): CompletableFuture>>
fun getTransactionResultsByBlockId(id: FlowId): CompletableFuture>>
fun getExecutionResultByBlockId(id: FlowId): CompletableFuture>
}