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 Summary
Constructors Constructor Description DefaultApi()
Deprecated.DefaultApi(ApiClient apiClient)
Deprecated. -
Method Summary
Modifier and Type Method Description Account
accountInformation(java.lang.String address)
Deprecated.Get account information.com.squareup.okhttp.Call
accountInformationAsync(java.lang.String address, ApiCallback<Account> callback)
Deprecated.Get account information.com.squareup.okhttp.Call
accountInformationCall(java.lang.String address, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Deprecated.Build call for accountInformationApiResponse<Account>
accountInformationWithHttpInfo(java.lang.String address)
Deprecated.Get account information.AssetParams
assetInformation(java.math.BigInteger index)
Deprecated.Get asset information.com.squareup.okhttp.Call
assetInformationAsync(java.math.BigInteger index, ApiCallback<AssetParams> callback)
Deprecated.Get asset information.com.squareup.okhttp.Call
assetInformationCall(java.math.BigInteger index, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Deprecated.Build call for assetInformationApiResponse<AssetParams>
assetInformationWithHttpInfo(java.math.BigInteger index)
Deprecated.Get asset information.ApiClient
getApiClient()
Deprecated.Block
getBlock(java.math.BigInteger round)
Deprecated.Get the block for the given round.com.squareup.okhttp.Call
getBlockAsync(java.math.BigInteger round, ApiCallback<Block> callback)
Deprecated.Get the block for the given round.com.squareup.okhttp.Call
getBlockCall(java.math.BigInteger round, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Deprecated.Build call for getBlockApiResponse<Block>
getBlockWithHttpInfo(java.math.BigInteger round)
Deprecated.Get the block for the given round.PendingTransactions
getPendingTransactions(java.math.BigInteger max)
Deprecated.Get a list of unconfirmed transactions currently in the transaction pool.com.squareup.okhttp.Call
getPendingTransactionsAsync(java.math.BigInteger max, ApiCallback<PendingTransactions> callback)
Deprecated.Get a list of unconfirmed transactions currently in the transaction pool.com.squareup.okhttp.Call
getPendingTransactionsCall(java.math.BigInteger max, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Deprecated.Build call for getPendingTransactionsApiResponse<PendingTransactions>
getPendingTransactionsWithHttpInfo(java.math.BigInteger max)
Deprecated.Get a list of unconfirmed transactions currently in the transaction pool.NodeStatus
getStatus()
Deprecated.Gets the current node status.com.squareup.okhttp.Call
getStatusAsync(ApiCallback<NodeStatus> callback)
Deprecated.Gets the current node status.com.squareup.okhttp.Call
getStatusCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Deprecated.Build call for getStatusApiResponse<NodeStatus>
getStatusWithHttpInfo()
Deprecated.Gets the current node status.Supply
getSupply()
Deprecated.Get the current supply reported by the ledger.com.squareup.okhttp.Call
getSupplyAsync(ApiCallback<Supply> callback)
Deprecated.Get the current supply reported by the ledger.com.squareup.okhttp.Call
getSupplyCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Deprecated.Build call for getSupplyApiResponse<Supply>
getSupplyWithHttpInfo()
Deprecated.Get the current supply reported by the ledger.Version
getVersion()
Deprecated.Retrieves the current versioncom.squareup.okhttp.Call
getVersionAsync(ApiCallback<Version> callback)
Deprecated.(asynchronously) Retrieves the current versioncom.squareup.okhttp.Call
getVersionCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Deprecated.Build call for getVersionApiResponse<Version>
getVersionWithHttpInfo()
Deprecated.Retrieves the current versionvoid
healthCheck()
Deprecated.Returns OK if healthy.com.squareup.okhttp.Call
healthCheckAsync(ApiCallback<java.lang.Void> callback)
Deprecated.Returns OK if healthy.com.squareup.okhttp.Call
healthCheckCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Deprecated.Build call for healthCheckApiResponse<java.lang.Void>
healthCheckWithHttpInfo()
Deprecated.Returns OK if healthy.void
metrics()
Deprecated.Return metrics about algod functioning.com.squareup.okhttp.Call
metricsAsync(ApiCallback<java.lang.Void> callback)
Deprecated.Return metrics about algod functioning.com.squareup.okhttp.Call
metricsCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Deprecated.Build call for metricsApiResponse<java.lang.Void>
metricsWithHttpInfo()
Deprecated.Return metrics about algod functioning.Transaction
pendingTransactionInformation(java.lang.String txid)
Deprecated.Get a specific pending transaction.com.squareup.okhttp.Call
pendingTransactionInformationAsync(java.lang.String txid, ApiCallback<Transaction> callback)
Deprecated.Get a specific pending transaction.com.squareup.okhttp.Call
pendingTransactionInformationCall(java.lang.String txid, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Deprecated.Build call for pendingTransactionInformationApiResponse<Transaction>
pendingTransactionInformationWithHttpInfo(java.lang.String txid)
Deprecated.Get a specific pending transaction.TransactionID
rawTransaction(byte[] rawtxn)
Deprecated.Broadcasts a raw transaction to the network.com.squareup.okhttp.Call
rawTransactionAsync(byte[] rawtxn, ApiCallback<TransactionID> callback)
Deprecated.Broadcasts a raw transaction to the network.com.squareup.okhttp.Call
rawTransactionCall(byte[] rawtxn, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Deprecated.Build call for rawTransactionApiResponse<TransactionID>
rawTransactionWithHttpInfo(byte[] rawtxn)
Deprecated.Broadcasts a raw transaction to the network.void
setApiClient(ApiClient apiClient)
Deprecated.TransactionFee
suggestedFee()
Deprecated.Get the suggested fee Suggested Fee is returned in units of micro-Algos per byte.com.squareup.okhttp.Call
suggestedFeeAsync(ApiCallback<TransactionFee> callback)
Deprecated.Get the suggested fee (asynchronously) Suggested Fee is returned in units of micro-Algos per byte.com.squareup.okhttp.Call
suggestedFeeCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Deprecated.Build call for suggestedFeeApiResponse<TransactionFee>
suggestedFeeWithHttpInfo()
Deprecated.Get the suggested fee Suggested Fee is returned in units of micro-Algos per byte.java.lang.String
swaggerJSON()
Deprecated.Gets the current swagger spec.com.squareup.okhttp.Call
swaggerJSONAsync(ApiCallback<java.lang.String> callback)
Deprecated.Gets the current swagger spec.com.squareup.okhttp.Call
swaggerJSONCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Deprecated.Build call for swaggerJSONApiResponse<java.lang.String>
swaggerJSONWithHttpInfo()
Deprecated.Gets the current swagger spec.Transaction
transaction(java.lang.String txid)
Deprecated.Get an information of a single transaction.com.squareup.okhttp.Call
transactionAsync(java.lang.String txid, ApiCallback<Transaction> callback)
Deprecated.Get an information of a single transaction.com.squareup.okhttp.Call
transactionCall(java.lang.String txid, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Deprecated.Build call for transactionTransaction
transactionInformation(java.lang.String address, java.lang.String txid)
Deprecated.Get a specific confirmed transaction.com.squareup.okhttp.Call
transactionInformationAsync(java.lang.String address, java.lang.String txid, ApiCallback<Transaction> callback)
Deprecated.Get a specific confirmed transaction.com.squareup.okhttp.Call
transactionInformationCall(java.lang.String address, java.lang.String txid, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Deprecated.Build call for transactionInformationApiResponse<Transaction>
transactionInformationWithHttpInfo(java.lang.String address, java.lang.String txid)
Deprecated.Get a specific confirmed transaction.TransactionParams
transactionParams()
Deprecated.Get parameters for constructing a new transactioncom.squareup.okhttp.Call
transactionParamsAsync(ApiCallback<TransactionParams> callback)
Deprecated.Get parameters for constructing a new transaction (asynchronously)com.squareup.okhttp.Call
transactionParamsCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Deprecated.Build call for transactionParamsApiResponse<TransactionParams>
transactionParamsWithHttpInfo()
Deprecated.Get parameters for constructing a new transactionTransactionList
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)
Deprecated.Get a list of confirmed transactions.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)
Deprecated.Get a list of confirmed transactions.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)
Deprecated.Build call for transactionsApiResponse<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)
Deprecated.Get a list of confirmed transactions.ApiResponse<Transaction>
transactionWithHttpInfo(java.lang.String txid)
Deprecated.Get an information of a single transaction.NodeStatus
waitForBlock(java.math.BigInteger round)
Deprecated.Gets the node status after waiting for the given round.com.squareup.okhttp.Call
waitForBlockAsync(java.math.BigInteger round, ApiCallback<NodeStatus> callback)
Deprecated.Gets the node status after waiting for the given round.com.squareup.okhttp.Call
waitForBlockCall(java.math.BigInteger round, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Deprecated.Build call for waitForBlockApiResponse<NodeStatus>
waitForBlockWithHttpInfo(java.math.BigInteger round)
Deprecated.Gets the node status after waiting for the given round.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DefaultApi
public DefaultApi()Deprecated. -
DefaultApi
Deprecated.
-
-
Method Details
-
getApiClient
Deprecated. -
setApiClient
Deprecated. -
accountInformationCall
public com.squareup.okhttp.Call accountInformationCall(java.lang.String address, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiExceptionDeprecated.Build call for accountInformation- Parameters:
address
- An account public key (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
accountInformation
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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.Build call for assetInformation- Parameters:
index
- Asset index (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
assetInformation
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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.Build call for getBlock- Parameters:
round
- The round from which to fetch block information. (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
getBlock
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
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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.Build call for getPendingTransactions- Parameters:
max
- Truncated number of transactions to display. If max=0, returns all pending txns. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
getPendingTransactions
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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.Build call for getStatus- Parameters:
progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
getStatus
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
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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.Build call for getSupply- Parameters:
progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
getSupply
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
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
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 ApiExceptionDeprecated.Build call for getVersion- Parameters:
progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
getVersion
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
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
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 ApiExceptionDeprecated.Build call for healthCheck- Parameters:
progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
healthCheck
Deprecated.Returns OK if healthy.- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
healthCheckWithHttpInfo
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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.Build call for metrics- Parameters:
progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
metrics
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
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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.Build call for pendingTransactionInformation- Parameters:
txid
- A transaction id (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
pendingTransactionInformation
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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.Build call for rawTransaction- Parameters:
rawtxn
- The byte encoded signed transaction to broadcast to network (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
rawTransaction
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
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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.Build call for suggestedFee- Parameters:
progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
suggestedFee
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
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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.Build call for swaggerJSON- Parameters:
progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
swaggerJSON
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
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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.Build call for transaction- Parameters:
txid
- A transaction id (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
transaction
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
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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.Build call for transactionInformation- Parameters:
address
- An account public key (required)txid
- A transaction id (required)progressListener
- Progress listenerprogressRequestListener
- 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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.Build call for transactionParams- Parameters:
progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
transactionParams
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
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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.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 listenerprogressRequestListener
- 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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.Build call for waitForBlock- Parameters:
round
- The round to wait until returning status (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
waitForBlock
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 ApiExceptionDeprecated.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 ApiExceptionDeprecated.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
-