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

io.blockfrost.sdk.impl.retrofit.AddressesApi Maven / Gradle / Ivy

There is a newer version: 0.1.3
Show newest version
package io.blockfrost.sdk.impl.retrofit;

import io.blockfrost.sdk.api.model.Address;
import io.blockfrost.sdk.api.model.AddressTotal;
import io.blockfrost.sdk.api.model.AddressTransaction;
import io.blockfrost.sdk.api.model.AddressUtxo;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;

import java.util.List;

public interface AddressesApi {
    /**
     * Specific address
     * Obtain information about a specific address.
     *
     * @param address Bech32 address. (required)
     * @return Call<Address>
     */
    @GET("addresses/{address}")
    Call
addressesAddressGet( @Header("project_id") String projectId, @Path("address") String address ); /** * Address details * Obtain details about an address. * * @param address Bech32 address. (required) * @return Call<AddressTotal> */ @GET("addresses/{address}/total") Call addressesAddressTotalGet( @Header("project_id") String projectId, @Path("address") String address ); /** * Address transactions * Transactions on the address. * * @param address Bech32 address. (required) * @param count The numbers of pools per page. (optional, default to 100) * @param page The page number for listing the results. (optional, default to 1) * @param order The ordering of items from the point of view of the blockchain, not the page listing itself. By default, we return oldest first, newest last. (optional, default to asc) * @param from The block number and optionally also index from which (inclusive) to start search for results, concatenated using colon. Has to be lower than or equal to `to` parameter. (optional) * @param to The block number and optionally also index where (inclusive) to end the search for results, concatenated using colon. Has to be higher than or equal to `from` parameter. (optional) * @return Call<List<AddressTransaction>> */ @GET("addresses/{address}/transactions") Call> addressesAddressTransactionsGet( @Header("project_id") String projectId, @Path("address") String address, @Query("count") Integer count, @Query("page") Integer page, @Query("order") String order, @Query("from") String from, @Query("to") String to ); /** * Address UTXOs * UTXOs of the address. * * @param address Bech32 address. (required) * @param count The number of results displayed on one page. (optional, default to 100) * @param page The page number for listing the results. (optional, default to 1) * @param order Ordered by tx index in the block. The ordering of items from the point of view of the blockchain, not the page listing itself. By default, we return oldest first, newest last. (optional, default to asc) * @return Call<List<Object>> */ @GET("addresses/{address}/utxos") Call> addressesAddressUtxosGet( @Header("project_id") String projectId, @Path("address") String address, @Query("count") Integer count, @Query("page") Integer page, @Query("order") String order ); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy