/** * Broadcast a transaction on the Steem blockchain. This method will validate * the transaction and return after it has been accepted and applied. * * @param transaction * The {@link SignedTransaction} object to broadcast. * @return A {@link BroadcastTransactionSynchronousReturn} object providing * information about the block in which the transaction has been * applied. * @throws SteemCommunicationException * <ul> * <li>If the server was not able to answer the request in the given * time (see * {@link eu.bittrade.libs.steemj.configuration.SteemJConfig#setResponseTimeout(int) * setResponseTimeout}).</li> * <li>If there is a connection problem.</li> * </ul> * @throws SteemResponseException * <ul> * <li>If the SteemJ is unable to transform the JSON response into a * Java object.</li> * <li>If the Server returned an error object.</li> * </ul> * @throws SteemInvalidTransactionException * In case the provided transaction is not valid. */ public BroadcastTransactionSynchronousReturn broadcastTransactionSynchronous(SignedTransaction transaction) throws SteemCommunicationException, SteemResponseException, SteemInvalidTransactionException { return NetworkBroadcastApi.broadcastTransactionSynchronous(communicationHandler, transaction); }
/** * Broadcast a transaction on the Steem blockchain. This method will validate * the transaction and return after it has been accepted and applied. * * @param transaction * The {@link SignedTransaction} object to broadcast. * @return A {@link BroadcastTransactionSynchronousReturn} object providing * information about the block in which the transaction has been * applied. * @throws SteemCommunicationException * <ul> * <li>If the server was not able to answer the request in the given * time (see * {@link eu.bittrade.libs.steemj.configuration.SteemJConfig#setResponseTimeout(int) * setResponseTimeout}).</li> * <li>If there is a connection problem.</li> * </ul> * @throws SteemResponseException * <ul> * <li>If the SteemJ is unable to transform the JSON response into a * Java object.</li> * <li>If the Server returned an error object.</li> * </ul> * @throws SteemInvalidTransactionException * In case the provided transaction is not valid. */ public BroadcastTransactionSynchronousReturn broadcastTransactionSynchronous(SignedTransaction transaction) throws SteemCommunicationException, SteemResponseException, SteemInvalidTransactionException { return NetworkBroadcastApi.broadcastTransactionSynchronous(communicationHandler, transaction); }
.broadcastTransactionSynchronous(COMMUNICATION_HANDLER, signedTransaction);