Package nxt.http
Class APICall.Builder<T extends APICall.Builder>
java.lang.Object
nxt.http.APICall.Builder<T>
- Direct Known Subclasses:
AddPeerCall,BlacklistAPIProxyPeerCall,BlacklistBundlerCall,BlacklistPeerCall,BootstrapAPIProxyCall,BroadcastTransactionCall,CalculateFeeCall,CalculateFullHashCall,CanDeleteCurrencyCall,ChainSpecificCallBuilder,ClearUnconfirmedTransactionsCall,CombineSecretCall,DecodeFileTokenCall,DecodeQRCodeCall,DecodeTokenCall,DecryptFromCall,DeriveAccountFromMasterPublicKeyCall,DeriveAccountFromSeedCall,DetectMimeTypeCall,DumpPeersCall,EncodeQRCodeCall,EncryptToCall,EvaluateExpressionCall,EventRegisterCall,EventWaitCall,FullHashToIdCall,FullResetCall,GenerateFileTokenCall,GenerateTokenCall,GetAccountAssetCountCall,GetAccountAssetsCall,GetAccountBlockCountCall,GetAccountBlockIdsCall,GetAccountBlocksCall,GetAccountCall,GetAccountCurrenciesCall,GetAccountCurrencyCountCall,GetAccountIdCall,GetAccountLedgerCall,GetAccountLedgerEntryCall,GetAccountLessorsCall,GetAccountPropertiesCall,GetAccountPublicKeyCall,GetAllAssetsCall,GetAllBroadcastedTransactionsCall,GetAllBundlerRatesCall,GetAllCurrenciesCall,GetAllPhasingOnlyControlsCall,GetAllWaitingTransactionsCall,GetAPIProxyReportsCall,GetAssetAccountCountCall,GetAssetAccountsCall,GetAssetCall,GetAssetHistoryCall,GetAssetIdsCall,GetAssetPropertiesCall,GetAssetsByIssuerCall,GetAssetsCall,GetAssetTransfersCall,GetBlockCall,GetBlockchainStatusCall,GetBlockIdCall,GetBlocksCall,GetBundlerRatesCall,GetBundlingOptionsCall,GetCoinExchangeOrderCall,GetCoinExchangeTradeCall,GetConfigurationCall,GetConstantsCall,GetContractReferencesCall,GetCurrenciesByIssuerCall,GetCurrenciesCall,GetCurrencyAccountCountCall,GetCurrencyAccountsCall,GetCurrencyIdsCall,GetCurrencyTransfersCall,GetECBlockCall,GetEffectiveBalanceCall,GetEpochTimeCall,GetForgingCall,GetFxtTransactionCall,GetGuaranteedBalanceCall,GetHashedSecretPhasedTransactionsCall,GetLedgerMasterPublicKeyCall,GetLinkedPhasedTransactionsCall,GetLogCall,GetMintingTargetCall,GetMyInfoCall,GetNextBlockGeneratorsCall,GetPeerCall,GetPeersCall,GetPhasingAssetControlCall,GetPhasingOnlyControlCall,GetPluginsCall,GetSharedKeyCall,GetShufflersCall,GetStackTracesCall,GetSupportedContractsCall,GetTimeCall,HashCall,HexConvertCall,LongConvertCall,LuceneReindexCall,ManagePeersNetworkingCall,ParsePhasingParamsCall,ParseTransactionCall,PopOffCall,ProcessVoucherCall,RebroadcastUnconfirmedTransactionsCall,RequeueUnconfirmedTransactionsCall,RsConvertCall,SaveContractRunnerEncryptedCall,ScanCall,SearchAccountsCall,SearchAssetsCall,SearchCurrenciesCall,SendTransactionCall,SetAPIProxyPeerCall,SetConfigurationCall,SetLoggingCall,ShutdownCall,SignTransactionCall,SplitSecretCall,StartContractRunnerEncryptedCall,StartForgingCall,StopForgingCall,StopShufflerCall,TaxReportCall,TriggerContractByHeightCall,TriggerContractByRequestCall,TriggerContractByVoucherCall,TrimDerivedTablesCall,UploadContractRunnerConfigurationCall
- Enclosing class:
- APICall
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()call()byte[]download()getBlock()getChain()Use to parse responses of create transaction APIResponse from CreateTransaction calls wraps the transactions inside a transactionJSON objectUse to parse responses of APIs which return a transaction object like getTransactionUse with any API which returns a "transactions" json arraygetTransactions(String arrayName) Use in case the response transaction array has a different namebooleanisParamSet(String key) booleanprivateKey(byte[] value) privateKey(String value) secretPhrase(String value) setParamValidation(boolean isEnabled) sharedPiece(String... sharedPiece) sharedPieceAccount(String value) trustRemoteCertificate(boolean trustRemoteCertificate) unsignedLongParam(String key, long value) unsignedLongParam(String key, long... longArray)
-
Field Details
-
params
-
-
Constructor Details
-
Builder
-
Builder
-
-
Method Details
-
remote
-
trustRemoteCertificate
-
isRemoteOnly
public boolean isRemoteOnly() -
setParamValidation
-
param
-
param
-
param
-
param
-
param
-
param
-
param
-
param
-
param
-
unsignedLongParam
-
unsignedLongParam
-
param
-
param
-
secretPhrase
-
privateKey
-
privateKey
-
getParam
-
getChain
-
isParamSet
-
parts
-
build
-
call
-
callNoError
-
download
public byte[] download() -
getTransactions
Use with any API which returns a "transactions" json array- Returns:
- list of transaction objects
-
getTransactions
Use in case the response transaction array has a different name- Parameters:
arrayName- the name of the transaction array- Returns:
- list of transaction objects
-
getCreatedTransactions
Response from CreateTransaction calls wraps the transactions inside a transactionJSON object- Returns:
- list of transaction objects
-
getTransaction
Use to parse responses of APIs which return a transaction object like getTransaction- Returns:
- transaction object
-
getCreatedTransaction
Use to parse responses of create transaction API- Returns:
- transaction object
-
getBlocks
-
getBlock
-