@Deprecated public class NetworkBroadcastApi extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
broadcastBlock(CommunicationHandler communicationHandler,
SignedBlock signedBlock)
Deprecated.
Broadcast a whole block.
|
static void |
broadcastTransaction(CommunicationHandler communicationHandler,
SignedTransaction transaction)
Deprecated.
Broadcast a transaction on the Beowulf blockchain.
|
static BroadcastTransactionSynchronousReturn |
broadcastTransactionSynchronous(CommunicationHandler communicationHandler,
SignedTransaction transaction)
Deprecated.
Broadcast a transaction on the Beowulf blockchain.
|
public static void broadcastTransaction(CommunicationHandler communicationHandler, SignedTransaction transaction) throws BeowulfCommunicationException, BeowulfResponseException, BeowulfInvalidTransactionException
broadcastTransactionSynchronous(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.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 - Copyright © 2019. All rights reserved.