Package org.consensusj.bitcoinj.service
Interface SendTransactionService
public interface SendTransactionService
Simple interface for sending signed "raw" transactions
-
Method Summary
Modifier and TypeMethodDescriptiondefault CompletableFuture
<org.bitcoinj.base.Sha256Hash> sendRawTransaction
(org.bitcoinj.core.Transaction signedTransaction) Broadcast a signed transaction on the P2P network.CompletableFuture
<org.bitcoinj.base.Sha256Hash> sendRawTransaction
(org.bitcoinj.core.Transaction signedTransaction, org.bitcoinj.base.Coin maxFeeRate) Broadcast a signed transaction on the P2P network
-
Method Details
-
sendRawTransaction
CompletableFuture<org.bitcoinj.base.Sha256Hash> sendRawTransaction(org.bitcoinj.core.Transaction signedTransaction, org.bitcoinj.base.Coin maxFeeRate) Broadcast a signed transaction on the P2P network- Parameters:
signedTransaction
- A signed, ready-to-broadcast transactionmaxFeeRate
- Reject transactions whose fee rate is higher than the specified value, expressed in BTC/kB.- Returns:
- A future for the transaction hash
-
sendRawTransaction
default CompletableFuture<org.bitcoinj.base.Sha256Hash> sendRawTransaction(org.bitcoinj.core.Transaction signedTransaction) Broadcast a signed transaction on the P2P network.This method has no maxFeeRate and behaves as if maxFeeRate were set to zero.
- Parameters:
signedTransaction
- A signed, ready-to-broadcast transaction- Returns:
- A future for the transaction hash
-