public class CondenserApi extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
broadcastBlock(CommunicationHandler communicationHandler,
SignedBlock signedBlock)
Broadcast a whole block.
|
static TransactionId |
broadcastTransaction(CommunicationHandler communicationHandler,
SignedTransaction transaction)
Broadcast a transaction on the Beowulf blockchain.
|
static BroadcastTransactionSynchronousReturn |
broadcastTransactionSynchronous(CommunicationHandler communicationHandler,
SignedTransaction transaction)
Broadcast a transaction on the Beowulf blockchain.
|
static List<FindSmtTokenByName> |
findSmtTokenByName(CommunicationHandler communicationHandler,
List<String> names)
(find_smt_tokens_by_name)
|
static org.joou.ULong |
getAccountCount(CommunicationHandler communicationHandler)
(get_account_count
|
static List<AccountHistoryReturn> |
getAccountHistory(CommunicationHandler communicationHandler,
String account,
long start,
long limit)
Deprecated.
|
static List<Account> |
getAccounts(CommunicationHandler communicationHandler,
List<AccountName> accounts)
(get_accounts)
|
static List<AccountName> |
getActiveSuperNodes(CommunicationHandler communicationHandler)
(get_active_supernodes)
|
static Asset |
getBalance(CommunicationHandler communicationHandler,
String accountName,
AssetInfo assetInfo)
Broadcast a whole block.
|
static Block |
getBlock(CommunicationHandler communicationHandler,
long blockNum)
(get_block)
|
static BlockHeader |
getBlockHeader(CommunicationHandler communicationHandler,
long blockNum)
(get_block_header)
|
static Config |
getConfig(CommunicationHandler communicationHandler)
(get_config)
|
static ExtendedDynamicGlobalProperties |
getDynamicGlobalProperties(CommunicationHandler communicationHandler)
Like
DatabaseApi.getDynamicGlobalProperties(CommunicationHandler), but
returns an ExtendedDynamicGlobalProperties object providing
additional information. |
static List<ExtendedAccount> |
getExtAccounts(CommunicationHandler communicationHandler,
List<AccountName> accounts) |
static String |
getHardforkVersion(CommunicationHandler communicationHandler)
Get the hardfork version the node you are connected to is using.
|
static List<String> |
getKeyReferences(CommunicationHandler communicationHandler,
List<PublicKey> publicKeys)
(get_key_references)
|
static ScheduledHardfork |
getNextScheduleHardfork(CommunicationHandler communicationHandler)
(get_next_scheduled_hardfork)
|
static Supernode |
getSupernodeByAccount(CommunicationHandler communicationHandler,
AccountName supernodeAccount)
(get_supernode_by_account)
|
static int |
getSupernodeCount(CommunicationHandler communicationHandler)
(get_supernode_count)
|
static List<Supernode> |
getSupernodesByVote(CommunicationHandler communicationHandler,
AccountName supernodeAccount,
int limit,
int vestingShare)
(get_supernodes_by_vote)
|
static SupernodeSchedule |
getSupernodeSchedule(CommunicationHandler communicationHandler)
(get_supernode_schedule)
|
static CompletedTransaction |
getTransactionDetail(CommunicationHandler communicationHandler,
String trx_id)
(get_transaction)
|
static String |
getTransactionHex(CommunicationHandler communicationHandler,
SignedTransaction transaction)
(get_transaction_hex)
|
static List<String> |
lookupAccounts(CommunicationHandler communicationHandler,
String pattern,
int limit)
(lookupSupernodeAccounts)
|
static List<String> |
lookupSupernodeAccounts(CommunicationHandler communicationHandler,
String pattern,
int limit)
(lookupSupernodeAccounts)
|
static Boolean |
verifyAccountAuthority(CommunicationHandler communicationHandler,
AccountName accountName,
List<PublicKey> publicKeys) |
public static ExtendedDynamicGlobalProperties getDynamicGlobalProperties(CommunicationHandler communicationHandler) throws BeowulfCommunicationException, BeowulfResponseException
DatabaseApi.getDynamicGlobalProperties(CommunicationHandler), but
returns an ExtendedDynamicGlobalProperties object providing
additional information.communicationHandler - A
CommunicationHandler instance that should be used to send the
request.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static List<ExtendedAccount> getExtAccounts(CommunicationHandler communicationHandler, List<AccountName> accounts) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.accounts - List accounts name.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static String getHardforkVersion(CommunicationHandler communicationHandler) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static BlockHeader getBlockHeader(CommunicationHandler communicationHandler, long blockNum) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.blockNum - The block number.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static Block getBlock(CommunicationHandler communicationHandler, long blockNum) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.blockNum - The block number.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static List<AccountName> getActiveSuperNodes(CommunicationHandler communicationHandler) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static Config getConfig(CommunicationHandler communicationHandler) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static List<Account> getAccounts(CommunicationHandler communicationHandler, List<AccountName> accounts) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.accounts - List account name.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - @Deprecated public static List<AccountHistoryReturn> getAccountHistory(CommunicationHandler communicationHandler, String account, long start, long limit) throws BeowulfCommunicationException, BeowulfResponseException
accountName.communicationHandler - A
CommunicationHandler instance that should be used to send the
request.account - get account history param include [name, start, limit]start - start positionlimit - limitation fo historyBeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static String getTransactionHex(CommunicationHandler communicationHandler, SignedTransaction transaction) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.transaction - get serialized of Signed Transaction.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static List<FindSmtTokenByName> findSmtTokenByName(CommunicationHandler communicationHandler, List<String> names) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.names - List name token.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static ScheduledHardfork getNextScheduleHardfork(CommunicationHandler communicationHandler) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static List<String> getKeyReferences(CommunicationHandler communicationHandler, List<PublicKey> publicKeys) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.publicKeys - List public keys.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static org.joou.ULong getAccountCount(CommunicationHandler communicationHandler) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static Supernode getSupernodeByAccount(CommunicationHandler communicationHandler, AccountName supernodeAccount) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.supernodeAccount - The acoount name.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static List<Supernode> getSupernodesByVote(CommunicationHandler communicationHandler, AccountName supernodeAccount, int limit, int vestingShare) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.supernodeAccount - The acoount name.limit - The number limit.vestingShare - The number coin.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static SupernodeSchedule getSupernodeSchedule(CommunicationHandler communicationHandler) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static int getSupernodeCount(CommunicationHandler communicationHandler) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static List<String> lookupSupernodeAccounts(CommunicationHandler communicationHandler, String pattern, int limit) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.pattern - The pattern name to search.limit - The number limit.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static List<String> lookupAccounts(CommunicationHandler communicationHandler, String pattern, int limit) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.pattern - The pattern name to search.limit - The number limit.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static CompletedTransaction getTransactionDetail(CommunicationHandler communicationHandler, String trx_id) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.trx_id - The transaction id.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static Boolean verifyAccountAuthority(CommunicationHandler communicationHandler, AccountName accountName, List<PublicKey> publicKeys) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.accountName - The account name.publicKeys - List public keys.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static Asset getBalance(CommunicationHandler communicationHandler, String accountName, AssetInfo assetInfo) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.accountName - account get balanceassetInfo - asset typeBeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static void broadcastBlock(CommunicationHandler communicationHandler, SignedBlock signedBlock) throws BeowulfCommunicationException, BeowulfResponseException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.signedBlock - The SignedBlock object to broadcast.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - public static TransactionId broadcastTransaction(CommunicationHandler communicationHandler, SignedTransaction transaction) throws BeowulfCommunicationException, BeowulfResponseException, BeowulfInvalidTransactionException
broadcastTransaction(CommunicationHandler, SignedTransaction)
method.communicationHandler - A
CommunicationHandler instance that should be used to send the
request.transaction - The SignedTransaction object to broadcast.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - BeowulfInvalidTransactionException - In case the provided transaction is not valid.public static BroadcastTransactionSynchronousReturn broadcastTransactionSynchronous(CommunicationHandler communicationHandler, SignedTransaction transaction) throws BeowulfCommunicationException, BeowulfResponseException, BeowulfInvalidTransactionException
communicationHandler - A
CommunicationHandler instance that should be used to send the
request.transaction - The SignedTransaction object to broadcast.BroadcastTransactionSynchronousReturn object providing
information about the block in which the transaction has been
applied.BeowulfCommunicationException - setResponseTimeout).BeowulfResponseException - BeowulfInvalidTransactionException - In case the provided transaction is not valid.Copyright © 2019. All rights reserved.