Class DefaultApi

java.lang.Object
com.algorand.algosdk.algod.client.api.DefaultApi
Direct Known Subclasses:
AlgodApi

@Deprecated
public class DefaultApi
extends java.lang.Object
Deprecated.
Use the equivalent in v2 algod client
  • Constructor Details

    • DefaultApi

      public DefaultApi()
      Deprecated.
    • DefaultApi

      public DefaultApi​(ApiClient apiClient)
      Deprecated.
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
      Deprecated.
    • setApiClient

      public void setApiClient​(ApiClient apiClient)
      Deprecated.
    • accountInformationCall

      public com.squareup.okhttp.Call accountInformationCall​(java.lang.String address, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Deprecated.
      Build call for accountInformation
      Parameters:
      address - An account public key (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • accountInformation

      public Account accountInformation​(java.lang.String address) throws ApiException
      Deprecated.
      Get account information. Given a specific account public key, this call returns the accounts status, balance and spendable amounts
      Parameters:
      address - An account public key (required)
      Returns:
      Account
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • accountInformationWithHttpInfo

      public ApiResponse<Account> accountInformationWithHttpInfo​(java.lang.String address) throws ApiException
      Deprecated.
      Get account information. Given a specific account public key, this call returns the accounts status, balance and spendable amounts
      Parameters:
      address - An account public key (required)
      Returns:
      ApiResponse<Account>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • accountInformationAsync

      public com.squareup.okhttp.Call accountInformationAsync​(java.lang.String address, ApiCallback<Account> callback) throws ApiException
      Deprecated.
      Get account information. (asynchronously) Given a specific account public key, this call returns the accounts status, balance and spendable amounts
      Parameters:
      address - An account public key (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • assetInformationCall

      public com.squareup.okhttp.Call assetInformationCall​(java.math.BigInteger index, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Deprecated.
      Build call for assetInformation
      Parameters:
      index - Asset index (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • assetInformation

      public AssetParams assetInformation​(java.math.BigInteger index) throws ApiException
      Deprecated.
      Get asset information. Given the asset's unique index, this call returns the asset's creator, manager, reserve, freeze, and clawback addresses
      Parameters:
      index - Asset index (required)
      Returns:
      AssetParams
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • assetInformationWithHttpInfo

      public ApiResponse<AssetParams> assetInformationWithHttpInfo​(java.math.BigInteger index) throws ApiException
      Deprecated.
      Get asset information. Given the asset's unique index, this call returns the asset's creator, manager, reserve, freeze, and clawback addresses
      Parameters:
      index - Asset index (required)
      Returns:
      ApiResponse<AssetParams>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • assetInformationAsync

      public com.squareup.okhttp.Call assetInformationAsync​(java.math.BigInteger index, ApiCallback<AssetParams> callback) throws ApiException
      Deprecated.
      Get asset information. (asynchronously) Given the asset's unique index, this call returns the asset's creator, manager, reserve, freeze, and clawback addresses
      Parameters:
      index - Asset index (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • getBlockCall

      public com.squareup.okhttp.Call getBlockCall​(java.math.BigInteger round, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Deprecated.
      Build call for getBlock
      Parameters:
      round - The round from which to fetch block information. (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getBlock

      public Block getBlock​(java.math.BigInteger round) throws ApiException
      Deprecated.
      Get the block for the given round.
      Parameters:
      round - The round from which to fetch block information. (required)
      Returns:
      Block
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getBlockWithHttpInfo

      public ApiResponse<Block> getBlockWithHttpInfo​(java.math.BigInteger round) throws ApiException
      Deprecated.
      Get the block for the given round.
      Parameters:
      round - The round from which to fetch block information. (required)
      Returns:
      ApiResponse<Block>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getBlockAsync

      public com.squareup.okhttp.Call getBlockAsync​(java.math.BigInteger round, ApiCallback<Block> callback) throws ApiException
      Deprecated.
      Get the block for the given round. (asynchronously)
      Parameters:
      round - The round from which to fetch block information. (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • getPendingTransactionsCall

      public com.squareup.okhttp.Call getPendingTransactionsCall​(java.math.BigInteger max, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Deprecated.
      Build call for getPendingTransactions
      Parameters:
      max - Truncated number of transactions to display. If max=0, returns all pending txns. (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getPendingTransactions

      public PendingTransactions getPendingTransactions​(java.math.BigInteger max) throws ApiException
      Deprecated.
      Get a list of unconfirmed transactions currently in the transaction pool. Get the list of pending transactions, sorted by priority, in decreasing order, truncated at the end at MAX. If MAX = 0, returns all pending transactions.
      Parameters:
      max - Truncated number of transactions to display. If max=0, returns all pending txns. (optional)
      Returns:
      PendingTransactions
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getPendingTransactionsWithHttpInfo

      public ApiResponse<PendingTransactions> getPendingTransactionsWithHttpInfo​(java.math.BigInteger max) throws ApiException
      Deprecated.
      Get a list of unconfirmed transactions currently in the transaction pool. Get the list of pending transactions, sorted by priority, in decreasing order, truncated at the end at MAX. If MAX = 0, returns all pending transactions.
      Parameters:
      max - Truncated number of transactions to display. If max=0, returns all pending txns. (optional)
      Returns:
      ApiResponse<PendingTransactions>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getPendingTransactionsAsync

      public com.squareup.okhttp.Call getPendingTransactionsAsync​(java.math.BigInteger max, ApiCallback<PendingTransactions> callback) throws ApiException
      Deprecated.
      Get a list of unconfirmed transactions currently in the transaction pool. (asynchronously) Get the list of pending transactions, sorted by priority, in decreasing order, truncated at the end at MAX. If MAX = 0, returns all pending transactions.
      Parameters:
      max - Truncated number of transactions to display. If max=0, returns all pending txns. (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • getStatusCall

      public com.squareup.okhttp.Call getStatusCall​(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Deprecated.
      Build call for getStatus
      Parameters:
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getStatus

      public NodeStatus getStatus() throws ApiException
      Deprecated.
      Gets the current node status.
      Returns:
      NodeStatus
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getStatusWithHttpInfo

      public ApiResponse<NodeStatus> getStatusWithHttpInfo() throws ApiException
      Deprecated.
      Gets the current node status.
      Returns:
      ApiResponse<NodeStatus>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getStatusAsync

      public com.squareup.okhttp.Call getStatusAsync​(ApiCallback<NodeStatus> callback) throws ApiException
      Deprecated.
      Gets the current node status. (asynchronously)
      Parameters:
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • getSupplyCall

      public com.squareup.okhttp.Call getSupplyCall​(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Deprecated.
      Build call for getSupply
      Parameters:
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getSupply

      public Supply getSupply() throws ApiException
      Deprecated.
      Get the current supply reported by the ledger.
      Returns:
      Supply
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getSupplyWithHttpInfo

      public ApiResponse<Supply> getSupplyWithHttpInfo() throws ApiException
      Deprecated.
      Get the current supply reported by the ledger.
      Returns:
      ApiResponse<Supply>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getSupplyAsync

      public com.squareup.okhttp.Call getSupplyAsync​(ApiCallback<Supply> callback) throws ApiException
      Deprecated.
      Get the current supply reported by the ledger. (asynchronously)
      Parameters:
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • getVersionCall

      public com.squareup.okhttp.Call getVersionCall​(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Deprecated.
      Build call for getVersion
      Parameters:
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getVersion

      public Version getVersion() throws ApiException
      Deprecated.
      Retrieves the current version
      Returns:
      Version
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getVersionWithHttpInfo

      public ApiResponse<Version> getVersionWithHttpInfo() throws ApiException
      Deprecated.
      Retrieves the current version
      Returns:
      ApiResponse<Version>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getVersionAsync

      public com.squareup.okhttp.Call getVersionAsync​(ApiCallback<Version> callback) throws ApiException
      Deprecated.
      (asynchronously) Retrieves the current version
      Parameters:
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • healthCheckCall

      public com.squareup.okhttp.Call healthCheckCall​(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Deprecated.
      Build call for healthCheck
      Parameters:
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • healthCheck

      public void healthCheck() throws ApiException
      Deprecated.
      Returns OK if healthy.
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • healthCheckWithHttpInfo

      public ApiResponse<java.lang.Void> healthCheckWithHttpInfo() throws ApiException
      Deprecated.
      Returns OK if healthy.
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • healthCheckAsync

      public com.squareup.okhttp.Call healthCheckAsync​(ApiCallback<java.lang.Void> callback) throws ApiException
      Deprecated.
      Returns OK if healthy. (asynchronously)
      Parameters:
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • metricsCall

      public com.squareup.okhttp.Call metricsCall​(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Deprecated.
      Build call for metrics
      Parameters:
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • metrics

      public void metrics() throws ApiException
      Deprecated.
      Return metrics about algod functioning.
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • metricsWithHttpInfo

      public ApiResponse<java.lang.Void> metricsWithHttpInfo() throws ApiException
      Deprecated.
      Return metrics about algod functioning.
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • metricsAsync

      public com.squareup.okhttp.Call metricsAsync​(ApiCallback<java.lang.Void> callback) throws ApiException
      Deprecated.
      Return metrics about algod functioning. (asynchronously)
      Parameters:
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • pendingTransactionInformationCall

      public com.squareup.okhttp.Call pendingTransactionInformationCall​(java.lang.String txid, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Deprecated.
      Build call for pendingTransactionInformation
      Parameters:
      txid - A transaction id (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • pendingTransactionInformation

      public Transaction pendingTransactionInformation​(java.lang.String txid) throws ApiException
      Deprecated.
      Get a specific pending transaction. Given a transaction id of a recently submitted transaction, it returns information about it. There are several cases when this might succeed: - transaction committed (committed round > 0) - transaction still in the pool (committed round = 0, pool error = \"\") - transaction removed from pool due to error (committed round = 0, pool error != \"\") Or the transaction may have happened sufficiently long ago that the node no longer remembers it, and this will return an error.
      Parameters:
      txid - A transaction id (required)
      Returns:
      Transaction
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • pendingTransactionInformationWithHttpInfo

      public ApiResponse<Transaction> pendingTransactionInformationWithHttpInfo​(java.lang.String txid) throws ApiException
      Deprecated.
      Get a specific pending transaction. Given a transaction id of a recently submitted transaction, it returns information about it. There are several cases when this might succeed: - transaction committed (committed round > 0) - transaction still in the pool (committed round = 0, pool error = \"\") - transaction removed from pool due to error (committed round = 0, pool error != \"\") Or the transaction may have happened sufficiently long ago that the node no longer remembers it, and this will return an error.
      Parameters:
      txid - A transaction id (required)
      Returns:
      ApiResponse<Transaction>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • pendingTransactionInformationAsync

      public com.squareup.okhttp.Call pendingTransactionInformationAsync​(java.lang.String txid, ApiCallback<Transaction> callback) throws ApiException
      Deprecated.
      Get a specific pending transaction. (asynchronously) Given a transaction id of a recently submitted transaction, it returns information about it. There are several cases when this might succeed: - transaction committed (committed round > 0) - transaction still in the pool (committed round = 0, pool error = \"\") - transaction removed from pool due to error (committed round = 0, pool error != \"\") Or the transaction may have happened sufficiently long ago that the node no longer remembers it, and this will return an error.
      Parameters:
      txid - A transaction id (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • rawTransactionCall

      public com.squareup.okhttp.Call rawTransactionCall​(byte[] rawtxn, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Deprecated.
      Build call for rawTransaction
      Parameters:
      rawtxn - The byte encoded signed transaction to broadcast to network (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • rawTransaction

      public TransactionID rawTransaction​(byte[] rawtxn) throws ApiException
      Deprecated.
      Broadcasts a raw transaction to the network.
      Parameters:
      rawtxn - The byte encoded signed transaction to broadcast to network (required)
      Returns:
      TransactionID
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • rawTransactionWithHttpInfo

      public ApiResponse<TransactionID> rawTransactionWithHttpInfo​(byte[] rawtxn) throws ApiException
      Deprecated.
      Broadcasts a raw transaction to the network.
      Parameters:
      rawtxn - The byte encoded signed transaction to broadcast to network (required)
      Returns:
      ApiResponse<TransactionID>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • rawTransactionAsync

      public com.squareup.okhttp.Call rawTransactionAsync​(byte[] rawtxn, ApiCallback<TransactionID> callback) throws ApiException
      Deprecated.
      Broadcasts a raw transaction to the network. (asynchronously)
      Parameters:
      rawtxn - The byte encoded signed transaction to broadcast to network (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • suggestedFeeCall

      public com.squareup.okhttp.Call suggestedFeeCall​(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Deprecated.
      Build call for suggestedFee
      Parameters:
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • suggestedFee

      public TransactionFee suggestedFee() throws ApiException
      Deprecated.
      Get the suggested fee Suggested Fee is returned in units of micro-Algos per byte. Suggested Fee may fall to zero but submitted transactions must still have a fee of at least MinTxnFee for the current network protocol.
      Returns:
      TransactionFee
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • suggestedFeeWithHttpInfo

      public ApiResponse<TransactionFee> suggestedFeeWithHttpInfo() throws ApiException
      Deprecated.
      Get the suggested fee Suggested Fee is returned in units of micro-Algos per byte. Suggested Fee may fall to zero but submitted transactions must still have a fee of at least MinTxnFee for the current network protocol.
      Returns:
      ApiResponse<TransactionFee>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • suggestedFeeAsync

      public com.squareup.okhttp.Call suggestedFeeAsync​(ApiCallback<TransactionFee> callback) throws ApiException
      Deprecated.
      Get the suggested fee (asynchronously) Suggested Fee is returned in units of micro-Algos per byte. Suggested Fee may fall to zero but submitted transactions must still have a fee of at least MinTxnFee for the current network protocol.
      Parameters:
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • swaggerJSONCall

      public com.squareup.okhttp.Call swaggerJSONCall​(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Deprecated.
      Build call for swaggerJSON
      Parameters:
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • swaggerJSON

      public java.lang.String swaggerJSON() throws ApiException
      Deprecated.
      Gets the current swagger spec. Returns the entire swagger spec in json.
      Returns:
      String
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • swaggerJSONWithHttpInfo

      public ApiResponse<java.lang.String> swaggerJSONWithHttpInfo() throws ApiException
      Deprecated.
      Gets the current swagger spec. Returns the entire swagger spec in json.
      Returns:
      ApiResponse<String>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • swaggerJSONAsync

      public com.squareup.okhttp.Call swaggerJSONAsync​(ApiCallback<java.lang.String> callback) throws ApiException
      Deprecated.
      Gets the current swagger spec. (asynchronously) Returns the entire swagger spec in json.
      Parameters:
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • transactionCall

      public com.squareup.okhttp.Call transactionCall​(java.lang.String txid, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Deprecated.
      Build call for transaction
      Parameters:
      txid - A transaction id (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • transaction

      public Transaction transaction​(java.lang.String txid) throws ApiException
      Deprecated.
      Get an information of a single transaction. Returns the transaction information of the given txid. Works only if the indexer is enabled.
      Parameters:
      txid - A transaction id (required)
      Returns:
      Transaction
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • transactionWithHttpInfo

      public ApiResponse<Transaction> transactionWithHttpInfo​(java.lang.String txid) throws ApiException
      Deprecated.
      Get an information of a single transaction. Returns the transaction information of the given txid. Works only if the indexer is enabled.
      Parameters:
      txid - A transaction id (required)
      Returns:
      ApiResponse<Transaction>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • transactionAsync

      public com.squareup.okhttp.Call transactionAsync​(java.lang.String txid, ApiCallback<Transaction> callback) throws ApiException
      Deprecated.
      Get an information of a single transaction. (asynchronously) Returns the transaction information of the given txid. Works only if the indexer is enabled.
      Parameters:
      txid - A transaction id (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • transactionInformationCall

      public com.squareup.okhttp.Call transactionInformationCall​(java.lang.String address, java.lang.String txid, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Deprecated.
      Build call for transactionInformation
      Parameters:
      address - An account public key (required)
      txid - A transaction id (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • transactionInformation

      public Transaction transactionInformation​(java.lang.String address, java.lang.String txid) throws ApiException
      Deprecated.
      Get a specific confirmed transaction. Given a wallet address and a transaction id, it returns the confirmed transaction information. This call scans up to <CurrentProtocol>.MaxTxnLife blocks in the past.
      Parameters:
      address - An account public key (required)
      txid - A transaction id (required)
      Returns:
      Transaction
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • transactionInformationWithHttpInfo

      public ApiResponse<Transaction> transactionInformationWithHttpInfo​(java.lang.String address, java.lang.String txid) throws ApiException
      Deprecated.
      Get a specific confirmed transaction. Given a wallet address and a transaction id, it returns the confirmed transaction information. This call scans up to <CurrentProtocol>.MaxTxnLife blocks in the past.
      Parameters:
      address - An account public key (required)
      txid - A transaction id (required)
      Returns:
      ApiResponse<Transaction>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • transactionInformationAsync

      public com.squareup.okhttp.Call transactionInformationAsync​(java.lang.String address, java.lang.String txid, ApiCallback<Transaction> callback) throws ApiException
      Deprecated.
      Get a specific confirmed transaction. (asynchronously) Given a wallet address and a transaction id, it returns the confirmed transaction information. This call scans up to <CurrentProtocol>.MaxTxnLife blocks in the past.
      Parameters:
      address - An account public key (required)
      txid - A transaction id (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • transactionParamsCall

      public com.squareup.okhttp.Call transactionParamsCall​(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Deprecated.
      Build call for transactionParams
      Parameters:
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • transactionParams

      public TransactionParams transactionParams() throws ApiException
      Deprecated.
      Get parameters for constructing a new transaction
      Returns:
      TransactionParams
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • transactionParamsWithHttpInfo

      public ApiResponse<TransactionParams> transactionParamsWithHttpInfo() throws ApiException
      Deprecated.
      Get parameters for constructing a new transaction
      Returns:
      ApiResponse<TransactionParams>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • transactionParamsAsync

      public com.squareup.okhttp.Call transactionParamsAsync​(ApiCallback<TransactionParams> callback) throws ApiException
      Deprecated.
      Get parameters for constructing a new transaction (asynchronously)
      Parameters:
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • transactionsCall

      public com.squareup.okhttp.Call transactionsCall​(java.lang.String address, java.math.BigInteger firstRound, java.math.BigInteger lastRound, org.threeten.bp.LocalDate fromDate, org.threeten.bp.LocalDate toDate, java.math.BigInteger max, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Deprecated.
      Build call for transactions
      Parameters:
      address - An account public key (required)
      firstRound - Do not fetch any transactions before this round. (optional)
      lastRound - Do not fetch any transactions after this round. (optional)
      fromDate - Do not fetch any transactions before this date. (enabled only with indexer) (optional)
      toDate - Do not fetch any transactions after this date. (enabled only with indexer) (optional)
      max - maximum transactions to show (default to 100) (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • transactions

      public TransactionList transactions​(java.lang.String address, java.math.BigInteger firstRound, java.math.BigInteger lastRound, org.threeten.bp.LocalDate fromDate, org.threeten.bp.LocalDate toDate, java.math.BigInteger max) throws ApiException
      Deprecated.
      Get a list of confirmed transactions. Returns the list of confirmed transactions between within a date range. This call is available only when the indexer is running.
      Parameters:
      address - An account public key (required)
      firstRound - Do not fetch any transactions before this round. (optional)
      lastRound - Do not fetch any transactions after this round. (optional)
      fromDate - Do not fetch any transactions before this date. (enabled only with indexer) (optional)
      toDate - Do not fetch any transactions after this date. (enabled only with indexer) (optional)
      max - maximum transactions to show (default to 100) (optional)
      Returns:
      TransactionList
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • transactionsWithHttpInfo

      public ApiResponse<TransactionList> transactionsWithHttpInfo​(java.lang.String address, java.math.BigInteger firstRound, java.math.BigInteger lastRound, org.threeten.bp.LocalDate fromDate, org.threeten.bp.LocalDate toDate, java.math.BigInteger max) throws ApiException
      Deprecated.
      Get a list of confirmed transactions. Returns the list of confirmed transactions between within a date range. This call is available only when the indexer is running.
      Parameters:
      address - An account public key (required)
      firstRound - Do not fetch any transactions before this round. (optional)
      lastRound - Do not fetch any transactions after this round. (optional)
      fromDate - Do not fetch any transactions before this date. (enabled only with indexer) (optional)
      toDate - Do not fetch any transactions after this date. (enabled only with indexer) (optional)
      max - maximum transactions to show (default to 100) (optional)
      Returns:
      ApiResponse<TransactionList>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • transactionsAsync

      public com.squareup.okhttp.Call transactionsAsync​(java.lang.String address, java.math.BigInteger firstRound, java.math.BigInteger lastRound, org.threeten.bp.LocalDate fromDate, org.threeten.bp.LocalDate toDate, java.math.BigInteger max, ApiCallback<TransactionList> callback) throws ApiException
      Deprecated.
      Get a list of confirmed transactions. (asynchronously) Returns the list of confirmed transactions between within a date range. This call is available only when the indexer is running.
      Parameters:
      address - An account public key (required)
      firstRound - Do not fetch any transactions before this round. (optional)
      lastRound - Do not fetch any transactions after this round. (optional)
      fromDate - Do not fetch any transactions before this date. (enabled only with indexer) (optional)
      toDate - Do not fetch any transactions after this date. (enabled only with indexer) (optional)
      max - maximum transactions to show (default to 100) (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • waitForBlockCall

      public com.squareup.okhttp.Call waitForBlockCall​(java.math.BigInteger round, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Deprecated.
      Build call for waitForBlock
      Parameters:
      round - The round to wait until returning status (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • waitForBlock

      public NodeStatus waitForBlock​(java.math.BigInteger round) throws ApiException
      Deprecated.
      Gets the node status after waiting for the given round. Waits for a block to appear after round {round} and returns the node's status at the time.
      Parameters:
      round - The round to wait until returning status (required)
      Returns:
      NodeStatus
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • waitForBlockWithHttpInfo

      public ApiResponse<NodeStatus> waitForBlockWithHttpInfo​(java.math.BigInteger round) throws ApiException
      Deprecated.
      Gets the node status after waiting for the given round. Waits for a block to appear after round {round} and returns the node's status at the time.
      Parameters:
      round - The round to wait until returning status (required)
      Returns:
      ApiResponse<NodeStatus>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • waitForBlockAsync

      public com.squareup.okhttp.Call waitForBlockAsync​(java.math.BigInteger round, ApiCallback<NodeStatus> callback) throws ApiException
      Deprecated.
      Gets the node status after waiting for the given round. (asynchronously) Waits for a block to appear after round {round} and returns the node's status at the time.
      Parameters:
      round - The round to wait until returning status (required)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object