Interface SawtoothRestService


  • public interface SawtoothRestService
    • 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)