Package io.graphenee.blockchain.sawtooth
Interface SawtoothRestService
-
public interface SawtoothRestService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description retrofit2.Call<com.google.gson.JsonObject>fetchBatch(String batchId)retrofit2.Call<com.google.gson.JsonObject>fetchBatches()retrofit2.Call<com.google.gson.JsonObject>fetchBatches(String head, String start, Integer limit, Boolean reverse)retrofit2.Call<com.google.gson.JsonObject>fetchBatchStatuses(String id)retrofit2.Call<com.google.gson.JsonObject>fetchBatchStatuses(String id, Integer wait)retrofit2.Call<com.google.gson.JsonObject>fetchBlock(String blockId)retrofit2.Call<com.google.gson.JsonObject>fetchBlocks()retrofit2.Call<com.google.gson.JsonObject>fetchBlocks(String head, String start, Integer limit, Boolean reverse)retrofit2.Call<com.google.gson.JsonObject>fetchReceipts(String id)retrofit2.Call<com.google.gson.JsonObject>fetchState()retrofit2.Call<com.google.gson.JsonObject>fetchState(String address)retrofit2.Call<com.google.gson.JsonObject>fetchTransaction(String transactionId)retrofit2.Call<com.google.gson.JsonObject>fetchTransactions()retrofit2.Call<com.google.gson.JsonObject>fetchTransactions(String head, String start, Integer limit, Boolean reverse)retrofit2.Call<com.google.gson.JsonObject>sendBatches(okhttp3.RequestBody data)
-
-
-
Method Detail
-
sendBatches
@Headers("Content-Type: application/octet-stream") @POST("/batches") retrofit2.Call<com.google.gson.JsonObject> sendBatches(@Body okhttp3.RequestBody data)
-
fetchBatches
@GET("/batches") retrofit2.Call<com.google.gson.JsonObject> fetchBatches()
-
fetchBatches
@GET("/batches") retrofit2.Call<com.google.gson.JsonObject> fetchBatches(@Query("head") String head, @Query("start") String start, @Query("limit") Integer limit, @Query("reverse") Boolean reverse)
-
fetchBatch
@GET("/batches/{batch_id}") retrofit2.Call<com.google.gson.JsonObject> fetchBatch(@Path("batch_id") String batchId)
-
fetchBatchStatuses
@GET("/batch_statuses") retrofit2.Call<com.google.gson.JsonObject> fetchBatchStatuses(@Query("id") String id)
-
fetchBatchStatuses
@GET("/batch_statuses") retrofit2.Call<com.google.gson.JsonObject> fetchBatchStatuses(@Query("id") String id, @Query("wait") Integer wait)
-
fetchState
@GET("/state") retrofit2.Call<com.google.gson.JsonObject> fetchState()
-
fetchState
@GET("/state/{address}") retrofit2.Call<com.google.gson.JsonObject> fetchState(@Path("address") String address)
-
fetchBlocks
@GET("/blocks") retrofit2.Call<com.google.gson.JsonObject> fetchBlocks()
-
fetchBlocks
@GET("/blocks") retrofit2.Call<com.google.gson.JsonObject> fetchBlocks(@Query("head") String head, @Query("start") String start, @Query("limit") Integer limit, @Query("reverse") Boolean reverse)
-
fetchBlock
@GET("/blocks/{block_id}") retrofit2.Call<com.google.gson.JsonObject> fetchBlock(@Path("block_id") String blockId)
-
fetchTransactions
@GET("/transactions") retrofit2.Call<com.google.gson.JsonObject> fetchTransactions()
-
fetchTransactions
@GET("/transactions") retrofit2.Call<com.google.gson.JsonObject> fetchTransactions(@Query("head") String head, @Query("start") String start, @Query("limit") Integer limit, @Query("reverse") Boolean reverse)
-
fetchTransaction
@GET("/transactions/{transaction_id}") retrofit2.Call<com.google.gson.JsonObject> fetchTransaction(@Path("transaction_id") String transactionId)
-
fetchReceipts
@GET("/receipts") retrofit2.Call<com.google.gson.JsonObject> fetchReceipts(@Query("id") String id)
-
-