Package org.fisco.bcos.sdk.client
Interface Client
- All Known Implementing Classes:
ClientImpl
public interface Client
This is the interface of client module.
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Loggerlogger -
Method Summary
Modifier and Type Method Description static Clientbuild(Channel channel)static Clientbuild(GroupManagerService groupManagerService, Channel channel, EventResource eventResource, java.lang.Integer groupId)Build a client instance GroupId is identified, all interfaces are availableCallcall(Transaction transaction)Ledger operation: call contract functions without sending transactionvoidcallAsync(Transaction transaction, RespCallback<Call> callback)Ledger operation: async call contract functions without sending transactionGenerateGroupgenerateGroup(java.lang.Integer groupId, long timestamp, boolean enableFreeStorage, java.util.List<java.lang.String> nodeList, java.lang.String peerIpPort)Group operation: generate a new groupvoidgenerateGroupAsync(java.lang.Integer groupId, long timestamp, boolean enableFreeStorage, java.util.List<java.lang.String> nodeList, java.lang.String peerIpPort, RespCallback<GenerateGroup> callback)Group operation: async generate a new groupBcosTransactionReceiptsDecodergetBatchReceiptsByBlockHashAndRange(java.lang.String blockHash, java.lang.String from, java.lang.String count)get receipt list according to the block hash and the given rangeBcosTransactionReceiptsDecodergetBatchReceiptsByBlockNumberAndRange(java.math.BigInteger blockNumber, java.lang.String from, java.lang.String count)get receipt list according to the block number and the given rangeBcosBlockgetBlockByHash(java.lang.String blockHash, boolean returnFullTransactionObjects)Ledger operation: get block by hashvoidgetBlockByHashAsync(java.lang.String blockHash, boolean returnFullTransactionObjects, RespCallback<BcosBlock> callback)Ledger operation: async get block by hashBcosBlockgetBlockByNumber(java.math.BigInteger blockNumber, boolean returnFullTransactionObjects)Ledger operation: get block by block numbervoidgetBlockByNumberAsync(java.math.BigInteger blockNumber, boolean returnFullTransactionObjects, RespCallback<BcosBlock> callback)Ledger operation: async get block by block numberBlockHashgetBlockHashByNumber(java.math.BigInteger blockNumber)Ledger operation: get block hash by block numbervoidgetBlockHashByNumberAsync(java.math.BigInteger blockNumber, RespCallback<BlockHash> callback)Ledger operation: async get block hash by block numberBcosBlockHeadergetBlockHeaderByHash(java.lang.String blockHash, boolean returnSignatureList)Ledger operation: get block header by block hashvoidgetBlockHeaderByHashAsync(java.lang.String blockHash, boolean returnSignatureList, RespCallback<BcosBlockHeader> callback)Ledger operation: async get block header by block hashBcosBlockHeadergetBlockHeaderByNumber(java.math.BigInteger blockNumber, boolean returnSignatureList)get block header by numbervoidgetBlockHeaderByNumberAsync(java.math.BigInteger blockNumber, boolean returnSignatureList, RespCallback<BcosBlockHeader> callback)java.math.BigIntegergetBlockLimit()Get cached block heightBlockNumbergetBlockNumber()Ledger operation: get block numberBlockNumbergetBlockNumber(java.lang.Integer groupId, java.lang.String peerIpAndPort)voidgetBlockNumberAsync(RespCallback<BlockNumber> callback)Ledger operation: async get block numberNodeVersiongetClientNodeVersion()CodegetCode(java.lang.String address)Ledger operation: get codevoidgetCodeAsync(java.lang.String address, RespCallback<Code> callback)Ledger operation: async get codevoidgetConsensusStates(RespCallback<ConsensusStatus> callback)Peer operation: async get consensus statusConsensusStatusgetConsensusStatus()Peer operation: get consensus statusCryptoSuitegetCryptoSuite()java.lang.IntegergetCryptoType()EventResourcegetEventResource()Get EventPushMsgHandler and FilterManager.java.lang.IntegergetGroupId()get groupId of the clientGroupListgetGroupList()Group operation: get peer group listGroupListgetGroupList(java.lang.String peerIpPort)Group operation: get peer group listvoidgetGroupListAsync(java.lang.String peerIpPort, RespCallback<GroupList> callback)Group operation: async get peer group listvoidgetGroupListAsync(RespCallback<GroupList> callback)Group operation: async get peer group listGroupManagerServicegetGroupManagerService()GroupPeersgetGroupPeers()Group operation: get group peersGroupPeersgetGroupPeers(java.lang.String peerIpPort)Group operation: get group peersvoidgetGroupPeersAsync(java.lang.String peerIpPort, RespCallback<GroupPeers> callback)Group operation: async get group peersvoidgetGroupPeersAsync(RespCallback<GroupPeers> callback)Group operation: async get group peersNodeIDListgetNodeIDList()Peer operation: get node idsNodeIDListgetNodeIDList(java.lang.String endpoint)voidgetNodeIDListAsync(RespCallback<NodeIDList> callback)Peer operation: async get node idsNodeInfogetNodeInfo(java.lang.String endpoint)Peer operation: get node informationvoidgetNodeInfoAsync(java.lang.String endpoint, RespCallback<NodeInfo> callback)Peer operation: get node informationNodeVersiongetNodeVersion()Peer operation: get node versionNodeVersiongetNodeVersion(java.lang.String ipAndPort)voidgetNodeVersion(RespCallback<NodeVersion> callback)Peer operation: get node versionObserverListgetObserverList()Peer operation: get observer node listvoidgetObserverList(RespCallback<ObserverList> callback)Peer operation: async get observer node listPbftViewgetPbftView()Peer operation: get pbft viewvoidgetPbftViewAsync(RespCallback<PbftView> callback)Peer operation: async get pbft viewPeersgetPeers()Peer operation: get connected peersPeersgetPeers(java.lang.String endpoint)Peer operation: get connected peersvoidgetPeersAsync(RespCallback<Peers> callback)Peer operation: async get connected peersPendingTransactionsgetPendingTransaction()Ledger operation: get pending transactions in transaction poolvoidgetPendingTransactionAsync(RespCallback<PendingTransactions> callback)Ledger operation: async get pending transactions in transaction poolPendingTxSizegetPendingTxSize()Ledger operation: get pending transaction sizevoidgetPendingTxSizeAsync(RespCallback<PendingTxSize> callback)Ledger operation: async get pending transaction sizeSealerListgetSealerList()Peer operation: get sealer node listvoidgetSealerListAsync(RespCallback<SealerList> callback)Peer operation: async get sealer node listSyncStatusgetSyncStatus()Peer operation: get sync statusvoidgetSyncStatus(RespCallback<SyncStatus> callback)Peer operation: async get sync statusSystemConfiggetSystemConfigByKey(java.lang.String key)Peer operation: get system configSystemConfiggetSystemConfigByKey(java.lang.String key, java.lang.String peerIpPort)Peer operation: get system configvoidgetSystemConfigByKeyAsync(java.lang.String key, java.lang.String peerIpPort, RespCallback<SystemConfig> callback)Peer operation: async get system configvoidgetSystemConfigByKeyAsync(java.lang.String key, RespCallback<SystemConfig> callback)Peer operation: async get system configTotalTransactionCountgetTotalTransactionCount()Ledger operation: get total transaction countvoidgetTotalTransactionCountAsync(RespCallback<TotalTransactionCount> callback)Ledger operation: async get total transaction countBcosTransactiongetTransactionByBlockHashAndIndex(java.lang.String blockHash, java.math.BigInteger transactionIndex)voidgetTransactionByBlockHashAndIndexAsync(java.lang.String blockHash, java.math.BigInteger transactionIndex, RespCallback<BcosTransaction> callback)BcosTransactiongetTransactionByBlockNumberAndIndex(java.math.BigInteger blockNumber, java.math.BigInteger transactionIndex)Ledger operation: get transaction by block number and indexvoidgetTransactionByBlockNumberAndIndexAsync(java.math.BigInteger blockNumber, java.math.BigInteger transactionIndex, RespCallback<BcosTransaction> callback)Ledger operation: async get transaction by block number and indexBcosTransactiongetTransactionByHash(java.lang.String transactionHash)Ledger operation: get trnasaction by hashvoidgetTransactionByHashAsync(java.lang.String transactionHash, RespCallback<BcosTransaction> callback)Ledger operation: async get trnasaction by hashTransactionWithProofgetTransactionByHashWithProof(java.lang.String transactionHash)Ledger operation: get transaction and proof by hashvoidgetTransactionByHashWithProofAsync(java.lang.String transactionHash, RespCallback<TransactionWithProof> callback)Ledger operation: async get transaction and proof by hashBcosTransactionReceiptgetTransactionReceipt(java.lang.String transactionHash)Ledger operation: get transaction receipt by transaction hashvoidgetTransactionReceiptAsync(java.lang.String transactionHash, RespCallback<BcosTransactionReceipt> callback)Ledger operation: async get transaction receipt by transaction hashTransactionReceiptWithProofgetTransactionReceiptByHashWithProof(java.lang.String transactionHash)Ledger operation: get transaction receipt and proof by transaction hashvoidgetTransactionReceiptByHashWithProofAsync(java.lang.String transactionHash, RespCallback<TransactionReceiptWithProof> callback)Ledger operation: async get transaction receipt and proof by transaction hashQueryGroupStatusqueryGroupStatus(java.lang.Integer groupId)Group operation: query group statusQueryGroupStatusqueryGroupStatus(java.lang.Integer groupId, java.lang.String peerIpPort)Group operation: query group statusvoidqueryGroupStatusAsync(java.lang.Integer groupId, java.lang.String peerIpPort, RespCallback<QueryGroupStatus> callback)Group operation: async query group statusvoidqueryGroupStatusAsync(java.lang.Integer groupId, RespCallback<QueryGroupStatus> callback)Group operation: async query group statusRecoverGrouprecoverGroup(java.lang.Integer groupId, java.lang.String peerIpPort)Group operation: recover a groupvoidrecoverGroupAsync(java.lang.Integer groupId, java.lang.String peerIpPort, RespCallback<RecoverGroup> callback)Group operation: async recover a groupRemoveGroupremoveGroup(java.lang.Integer groupId, java.lang.String peerIpPort)Group operation: remove a groupvoidremoveGroupAsync(java.lang.Integer groupId, java.lang.String peerIpPort, RespCallback<RemoveGroup> callback)Group operation: async remove a groupSendTransactionsendRawTransaction(java.lang.String signedTransactionData)Ledger operation: send transactionSendTransactionsendRawTransactionAndGetProof(java.lang.String signedTransactionData)Ledger operation: send raw transaction and get proofvoidsendRawTransactionAndGetProofAsync(java.lang.String signedTransactionData, RespCallback<SendTransaction> callback)Ledger operation: async send transaction and get proofTransactionReceiptsendRawTransactionAndGetReceipt(java.lang.String signedTransactionData)send transaction and get the receipt as the responsevoidsendRawTransactionAndGetReceiptAsync(java.lang.String signedTransactionData, TransactionCallback callback)send transaction to the node, and calls TransactionCallback when get the transaction receipt responseTransactionReceiptsendRawTransactionAndGetReceiptWithProof(java.lang.String signedTransactionData)calls sendRawTransactionAndGetProof interface and get the transaction receiptvoidsendRawTransactionAndGetReceiptWithProofAsync(java.lang.String signedTransactionData, TransactionCallback callback)calls sendRawTransactionAndGetProof interface, calls TransactionCallback when get the transaction receiptvoidsendRawTransactionAsync(java.lang.String signedTransactionData, RespCallback<SendTransaction> callback)Ledger operation: async send transactionStartGroupstartGroup(java.lang.Integer groupId, java.lang.String peerIpPort)Group operation: start a groupvoidstartGroupAsync(java.lang.Integer groupId, java.lang.String peerIpPort, RespCallback<StartGroup> callback)Group operation: async start a groupvoidstop()StopGroupstopGroup(java.lang.Integer groupId, java.lang.String peerIpPort)Group operation: stop a groupvoidstopGroupAsync(java.lang.Integer groupId, java.lang.String peerIpPort, RespCallback<StopGroup> callback)Group operation: async stop a group
-
Field Details
-
logger
static final org.slf4j.Logger logger
-
-
Method Details
-
build
static Client build(GroupManagerService groupManagerService, Channel channel, EventResource eventResource, java.lang.Integer groupId)Build a client instance GroupId is identified, all interfaces are available- Parameters:
channel- the Channel instancegroupId- the group idgroupManagerService- the groupManagerService instanceeventResource- the eventResource instance- Returns:
- a client instance
-
build
-
getGroupManagerService
GroupManagerService getGroupManagerService() -
getCryptoSuite
CryptoSuite getCryptoSuite() -
getClientNodeVersion
NodeVersion getClientNodeVersion() -
getCryptoType
java.lang.Integer getCryptoType() -
getGroupId
java.lang.Integer getGroupId()get groupId of the client- Returns:
- the groupId
-
sendRawTransaction
Ledger operation: send transaction- Parameters:
signedTransactionData- transaction string- Returns:
- SendTransaction
-
sendRawTransactionAsync
void sendRawTransactionAsync(java.lang.String signedTransactionData, RespCallback<SendTransaction> callback)Ledger operation: async send transaction- Parameters:
signedTransactionData- transaction stringcallback- the callback that will be called when receive the response
-
sendRawTransactionAndGetProof
Ledger operation: send raw transaction and get proof- Parameters:
signedTransactionData- transaction string- Returns:
- a SendTransaction instance
-
sendRawTransactionAndGetProofAsync
void sendRawTransactionAndGetProofAsync(java.lang.String signedTransactionData, RespCallback<SendTransaction> callback)Ledger operation: async send transaction and get proof- Parameters:
signedTransactionData- transaction stringcallback- the callback that will be called when receive the response
-
sendRawTransactionAndGetReceipt
send transaction and get the receipt as the response- Parameters:
signedTransactionData- the transaction data sent to the node- Returns:
- the transaction receipt
-
sendRawTransactionAndGetReceiptAsync
void sendRawTransactionAndGetReceiptAsync(java.lang.String signedTransactionData, TransactionCallback callback)send transaction to the node, and calls TransactionCallback when get the transaction receipt response- Parameters:
signedTransactionData- the transaction sent to the nodecallback- the TransactionCallback called after get the transaction receipt
-
sendRawTransactionAndGetReceiptWithProof
TransactionReceipt sendRawTransactionAndGetReceiptWithProof(java.lang.String signedTransactionData)calls sendRawTransactionAndGetProof interface and get the transaction receipt- Parameters:
signedTransactionData- the transaction sent to the node- Returns:
- the transaction receipt
-
sendRawTransactionAndGetReceiptWithProofAsync
void sendRawTransactionAndGetReceiptWithProofAsync(java.lang.String signedTransactionData, TransactionCallback callback)calls sendRawTransactionAndGetProof interface, calls TransactionCallback when get the transaction receipt- Parameters:
signedTransactionData- the transaction sent to the nodecallback- the TransactionCallback called after get the transaction receipt
-
call
Ledger operation: call contract functions without sending transaction- Parameters:
transaction- transaction instance- Returns:
- Call
-
callAsync
Ledger operation: async call contract functions without sending transaction- Parameters:
transaction- transaction instancecallback- the callback that will be called when receive the response
-
getBlockNumber
BlockNumber getBlockNumber()Ledger operation: get block number- Returns:
- block number
-
getBlockNumber
-
getBlockNumberAsync
Ledger operation: async get block number- Parameters:
callback- the callback that will be called when receive the response
-
getCode
Ledger operation: get code- Parameters:
address- the address string- Returns:
- a code instance
-
getCodeAsync
Ledger operation: async get code- Parameters:
address- the address stringcallback- the callback that will be called when receive the response
-
getTotalTransactionCount
TotalTransactionCount getTotalTransactionCount()Ledger operation: get total transaction count- Returns:
- TotalTransactionCount
-
getTotalTransactionCountAsync
Ledger operation: async get total transaction count- Parameters:
callback- the callback that will be called when receive the response
-
getBlockByHash
Ledger operation: get block by hash- Parameters:
blockHash- the hashcode of the blockreturnFullTransactionObjects- the boolean define the tx is full or not- Returns:
- a block
-
getBlockByHashAsync
void getBlockByHashAsync(java.lang.String blockHash, boolean returnFullTransactionObjects, RespCallback<BcosBlock> callback)Ledger operation: async get block by hash- Parameters:
blockHash- the hashcode of the blockreturnFullTransactionObjects- the boolean define the tx is full or notcallback- the callback that will be called when receive the response
-
getBlockByNumber
Ledger operation: get block by block number- Parameters:
blockNumber- the number of the blockreturnFullTransactionObjects- the boolean define the tx is full or not- Returns:
- block
-
getBlockByNumberAsync
void getBlockByNumberAsync(java.math.BigInteger blockNumber, boolean returnFullTransactionObjects, RespCallback<BcosBlock> callback)Ledger operation: async get block by block number- Parameters:
blockNumber- the number of the blockreturnFullTransactionObjects- the boolean define the tx is full or notcallback- the callback that will be called when receive the response
-
getBlockHashByNumber
Ledger operation: get block hash by block number- Parameters:
blockNumber- the number of the block- Returns:
- block hash
-
getBlockHashByNumberAsync
Ledger operation: async get block hash by block number- Parameters:
blockNumber- the number of the blockcallback- the callback that will be called when receive the response
-
getBlockHeaderByHash
Ledger operation: get block header by block hash- Parameters:
blockHash- the hashcode of the blockreturnSignatureList- the boolean define the signature list is returned or not- Returns:
- block header
-
getBlockHeaderByHashAsync
void getBlockHeaderByHashAsync(java.lang.String blockHash, boolean returnSignatureList, RespCallback<BcosBlockHeader> callback)Ledger operation: async get block header by block hash- Parameters:
blockHash- the hashcode of the blockreturnSignatureList- the boolean define the signature list is returned or notcallback- the call back instance
-
getBlockHeaderByNumber
BcosBlockHeader getBlockHeaderByNumber(java.math.BigInteger blockNumber, boolean returnSignatureList)get block header by number- Parameters:
blockNumber- the number of the blockreturnSignatureList- the boolean define the signature list is returned or not- Returns:
- the block header response from the blockchain node
-
getBlockHeaderByNumberAsync
void getBlockHeaderByNumberAsync(java.math.BigInteger blockNumber, boolean returnSignatureList, RespCallback<BcosBlockHeader> callback) -
getTransactionByHash
Ledger operation: get trnasaction by hash- Parameters:
transactionHash- the hashcode of transaction- Returns:
- transaction
-
getTransactionByHashAsync
void getTransactionByHashAsync(java.lang.String transactionHash, RespCallback<BcosTransaction> callback)Ledger operation: async get trnasaction by hash- Parameters:
transactionHash- the hashcode of transactioncallback- the callback that will be called when receive the response
-
getTransactionByHashWithProof
Ledger operation: get transaction and proof by hash- Parameters:
transactionHash- the hashcode of transaction- Returns:
- transaction with proof
-
getTransactionByHashWithProofAsync
void getTransactionByHashWithProofAsync(java.lang.String transactionHash, RespCallback<TransactionWithProof> callback)Ledger operation: async get transaction and proof by hash- Parameters:
transactionHash- the hashcode of transactioncallback- the callback that will be called when receive the response
-
getTransactionByBlockNumberAndIndex
BcosTransaction getTransactionByBlockNumberAndIndex(java.math.BigInteger blockNumber, java.math.BigInteger transactionIndex)Ledger operation: get transaction by block number and index- Parameters:
blockNumber- the number of blocktransactionIndex- the index of transaction- Returns:
- transaction
-
getTransactionByBlockNumberAndIndexAsync
void getTransactionByBlockNumberAndIndexAsync(java.math.BigInteger blockNumber, java.math.BigInteger transactionIndex, RespCallback<BcosTransaction> callback)Ledger operation: async get transaction by block number and index- Parameters:
blockNumber- the number of blocktransactionIndex- the index of transactioncallback- the callback that will be called when receive the response
-
getTransactionByBlockHashAndIndex
BcosTransaction getTransactionByBlockHashAndIndex(java.lang.String blockHash, java.math.BigInteger transactionIndex) -
getTransactionByBlockHashAndIndexAsync
void getTransactionByBlockHashAndIndexAsync(java.lang.String blockHash, java.math.BigInteger transactionIndex, RespCallback<BcosTransaction> callback) -
getTransactionReceipt
Ledger operation: get transaction receipt by transaction hash- Parameters:
transactionHash- the hashcode of transaction- Returns:
- transaction receipt
-
getTransactionReceiptAsync
void getTransactionReceiptAsync(java.lang.String transactionHash, RespCallback<BcosTransactionReceipt> callback)Ledger operation: async get transaction receipt by transaction hash- Parameters:
transactionHash- the hashcode of transactioncallback- the callback that will be called when receive the response
-
getTransactionReceiptByHashWithProof
Ledger operation: get transaction receipt and proof by transaction hash- Parameters:
transactionHash- the hashcode of transaction- Returns:
- receipt and proof
-
getTransactionReceiptByHashWithProofAsync
void getTransactionReceiptByHashWithProofAsync(java.lang.String transactionHash, RespCallback<TransactionReceiptWithProof> callback)Ledger operation: async get transaction receipt and proof by transaction hash- Parameters:
transactionHash- the hashcode of transactioncallback- the callback that will be called when receive the response
-
getPendingTransaction
PendingTransactions getPendingTransaction()Ledger operation: get pending transactions in transaction pool- Returns:
- pending transactions
-
getPendingTransactionAsync
Ledger operation: async get pending transactions in transaction pool- Parameters:
callback- the callback that will be called when receive the response
-
getPendingTxSize
PendingTxSize getPendingTxSize()Ledger operation: get pending transaction size- Returns:
- PendingTxSize
-
getPendingTxSizeAsync
Ledger operation: async get pending transaction size- Parameters:
callback- the callback that will be called when receive the response
-
getBlockLimit
java.math.BigInteger getBlockLimit()Get cached block height- Returns:
- block number
-
generateGroup
GenerateGroup generateGroup(java.lang.Integer groupId, long timestamp, boolean enableFreeStorage, java.util.List<java.lang.String> nodeList, java.lang.String peerIpPort)Group operation: generate a new group- Parameters:
groupId- the group idtimestamp- timestampenableFreeStorage- enable free storagenodeList- give the ip string list of the nodes in the grouppeerIpPort- send to the specific peer- Returns:
- generate group reply message
-
generateGroupAsync
void generateGroupAsync(java.lang.Integer groupId, long timestamp, boolean enableFreeStorage, java.util.List<java.lang.String> nodeList, java.lang.String peerIpPort, RespCallback<GenerateGroup> callback)Group operation: async generate a new group- Parameters:
groupId- the group idtimestamp- timestampenableFreeStorage- enable free storagenodeList- the list of the nodes in the grouppeerIpPort- send to the specific peercallback- the callback that will be called when receive the response
-
startGroup
Group operation: start a group- Parameters:
groupId- the group idpeerIpPort- the node that the request sent to- Returns:
- start group rpc reply
-
startGroupAsync
void startGroupAsync(java.lang.Integer groupId, java.lang.String peerIpPort, RespCallback<StartGroup> callback)Group operation: async start a group- Parameters:
groupId- the group idpeerIpPort- the node that the request sent tocallback- the callback that will be called when receive the response
-
stopGroup
Group operation: stop a group- Parameters:
groupId- the group idpeerIpPort- the node that the request sent to- Returns:
- stop group rpc reply
-
stopGroupAsync
void stopGroupAsync(java.lang.Integer groupId, java.lang.String peerIpPort, RespCallback<StopGroup> callback)Group operation: async stop a group- Parameters:
groupId- the group idpeerIpPort- the node that the request sent tocallback- the callback that will be called when receive the response
-
removeGroup
Group operation: remove a group- Parameters:
groupId- the group idpeerIpPort- the node that the request sent to- Returns:
- remove group rpc reply
-
removeGroupAsync
void removeGroupAsync(java.lang.Integer groupId, java.lang.String peerIpPort, RespCallback<RemoveGroup> callback)Group operation: async remove a group- Parameters:
groupId- the group idpeerIpPort- the node that the request sent tocallback- the callback that will be called when receive the response
-
recoverGroup
Group operation: recover a group- Parameters:
groupId- the group idpeerIpPort- the node that the request sent to- Returns:
- recover group rpc reply
-
recoverGroupAsync
void recoverGroupAsync(java.lang.Integer groupId, java.lang.String peerIpPort, RespCallback<RecoverGroup> callback)Group operation: async recover a group- Parameters:
groupId- the group idpeerIpPort- the node that the request sent tocallback- the callback that will be called when receive the response
-
queryGroupStatus
Group operation: query group status- Parameters:
groupId- the group id- Returns:
- group status
-
queryGroupStatus
Group operation: query group status- Parameters:
groupId- the group idpeerIpPort- the node that the request sent to- Returns:
- group status
-
queryGroupStatusAsync
Group operation: async query group status- Parameters:
groupId- the group idcallback- the callback that will be called when receive the response
-
queryGroupStatusAsync
void queryGroupStatusAsync(java.lang.Integer groupId, java.lang.String peerIpPort, RespCallback<QueryGroupStatus> callback)Group operation: async query group status- Parameters:
groupId- the group that the request sent topeerIpPort- the node that the request sent tocallback- the callback that will be called when receive the response
-
getGroupList
GroupList getGroupList()Group operation: get peer group list- Returns:
- group list
-
getGroupList
Group operation: get peer group list- Parameters:
peerIpPort- send to the specific peer- Returns:
- group list
-
getGroupListAsync
Group operation: async get peer group list- Parameters:
callback- the callback that will be called when receive the response
-
getGroupListAsync
Group operation: async get peer group list- Parameters:
peerIpPort- send to the specific peercallback- the callback that will be called when receive the response
-
getGroupPeers
GroupPeers getGroupPeers()Group operation: get group peers- Returns:
- group peers
-
getGroupPeers
Group operation: get group peers- Parameters:
peerIpPort- the target node of the request- Returns:
- group peers
-
getGroupPeersAsync
Group operation: async get group peers- Parameters:
callback- the callback that will be called when receive the response
-
getGroupPeersAsync
Group operation: async get group peers- Parameters:
peerIpPort- the target node of the requestcallback- the callback that will be called when receive the response
-
getPeers
Peers getPeers()Peer operation: get connected peers- Returns:
- peers
-
getPeers
Peer operation: get connected peers- Parameters:
endpoint- the target node that receive the request- Returns:
- peers
-
getPeersAsync
Peer operation: async get connected peers- Parameters:
callback- the callback instance
-
getNodeInfo
Peer operation: get node information- Parameters:
endpoint- the target node that receive the request- Returns:
- node information
-
getNodeInfoAsync
Peer operation: get node information- Parameters:
endpoint- the target node that receive the requestcallback- callback the call back instance
-
getNodeIDList
NodeIDList getNodeIDList()Peer operation: get node ids- Returns:
- node id list
-
getNodeIDList
-
getNodeIDListAsync
Peer operation: async get node ids- Parameters:
callback- the callback instance
-
getObserverList
ObserverList getObserverList()Peer operation: get observer node list- Returns:
- observer node list
-
getObserverList
Peer operation: async get observer node list- Parameters:
callback- the callback instance
-
getSealerList
SealerList getSealerList()Peer operation: get sealer node list- Returns:
- sealer node list
-
getSealerListAsync
Peer operation: async get sealer node list- Parameters:
callback- the callback instance
-
getPbftView
PbftView getPbftView()Peer operation: get pbft view- Returns:
- pbft view
-
getPbftViewAsync
Peer operation: async get pbft view- Parameters:
callback- the callback instance
-
getNodeVersion
-
getNodeVersion
NodeVersion getNodeVersion()Peer operation: get node version- Returns:
- node version
-
getNodeVersion
Peer operation: get node version- Parameters:
callback- the callback instance
-
getBatchReceiptsByBlockNumberAndRange
BcosTransactionReceiptsDecoder getBatchReceiptsByBlockNumberAndRange(java.math.BigInteger blockNumber, java.lang.String from, java.lang.String count)get receipt list according to the block number and the given range- Parameters:
blockNumber- the block number of the receiptsfrom- the start index of the receipt list requiredcount- the end index of the receipt list required- Returns:
- the receipt list
-
getBatchReceiptsByBlockHashAndRange
BcosTransactionReceiptsDecoder getBatchReceiptsByBlockHashAndRange(java.lang.String blockHash, java.lang.String from, java.lang.String count)get receipt list according to the block hash and the given range- Parameters:
blockHash- the block hash of the receiptsfrom- the start index of the receipt list requiredcount- the end index of the receipt list required- Returns:
- the receipt list
-
getConsensusStatus
ConsensusStatus getConsensusStatus()Peer operation: get consensus status- Returns:
- consensus status
-
getConsensusStates
Peer operation: async get consensus status- Parameters:
callback- the callback instance
-
getSystemConfigByKey
Peer operation: get system config- Parameters:
key- the string of key- Returns:
- system config
-
getSystemConfigByKey
Peer operation: get system config- Parameters:
key- the string of keypeerIpPort- the node that the request sent to- Returns:
- system config
-
getSystemConfigByKeyAsync
Peer operation: async get system config- Parameters:
key- the string of keycallback- the callback instance
-
getSystemConfigByKeyAsync
void getSystemConfigByKeyAsync(java.lang.String key, java.lang.String peerIpPort, RespCallback<SystemConfig> callback)Peer operation: async get system config- Parameters:
key- the string of keypeerIpPort- the port string ofcallback- the callback instance
-
getSyncStatus
SyncStatus getSyncStatus()Peer operation: get sync status- Returns:
- sync status
-
getSyncStatus
Peer operation: async get sync status- Parameters:
callback- the callback instance
-
getEventResource
EventResource getEventResource()Get EventPushMsgHandler and FilterManager.- Returns:
- EventResource
-
stop
void stop()
-