Modifier and Type | Field and Description |
---|---|
Transaction |
Wallet.SendResult.tx
The Bitcoin transaction message that moves the money.
|
Transaction |
Wallet.SendRequest.tx
A transaction, probably incomplete, that describes the outline of what you want to do.
|
Modifier and Type | Field and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<Transaction> |
Wallet.SendResult.broadcastComplete
A future that will complete once the tx message has been successfully broadcast to the network.
|
Modifier and Type | Method and Description |
---|---|
Transaction |
Wallet.createSend(Address address,
BigInteger nanocoins)
Statelessly creates a transaction that sends the given value to address.
|
Transaction |
MemoryPool.get(Sha256Hash hash)
Returns the
Transaction for the given hash if we have downloaded it, or null if that hash is unknown or
we only saw advertisements for it yet or it has been downloaded but garbage collected due to nowhere else
holding a reference to it. |
Transaction |
TransactionConfidence.getOverridingTransaction()
If this transaction has been overridden by a double spend (is dead), this call returns the overriding transaction.
|
Transaction |
TransactionOutput.getParentTransaction()
Returns the transaction that owns this output, or throws NullPointerException if unowned.
|
Transaction |
TransactionInput.getParentTransaction() |
Transaction |
Wallet.getTransaction(Sha256Hash hash)
Returns a transaction object given its hash, if it exists in this wallet, or null otherwise.
|
Transaction |
MemoryPool.intern(Transaction tx)
Puts the tx into the table and returns either it, or a different Transaction object that has the same hash.
|
Transaction |
MemoryPool.seen(Transaction tx,
PeerAddress byPeer)
Called by peers when they receive a "tx" message containing a valid serialized transaction.
|
Transaction |
Wallet.sendCoins(Peer peer,
Wallet.SendRequest request)
Sends coins to the given address, via the given
Peer . |
Transaction |
Wallet.sendCoinsOffline(Wallet.SendRequest request)
Sends coins to the given address but does not broadcast the resulting pending transaction.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<Transaction> |
TransactionBroadcast.broadcast() |
com.google.common.util.concurrent.ListenableFuture<Transaction> |
TransactionBroadcaster.broadcastTransaction(Transaction tx)
Broadcast the given transaction on the network
|
com.google.common.util.concurrent.ListenableFuture<Transaction> |
PeerGroup.broadcastTransaction(Transaction tx)
Calls
PeerGroup.broadcastTransaction(Transaction,int) with getMinBroadcastConnections() as the number
of connections to wait for before commencing broadcast. |
com.google.common.util.concurrent.ListenableFuture<Transaction> |
PeerGroup.broadcastTransaction(Transaction tx,
int minConnections)
Given a transaction, sends it un-announced to one peer and then waits for it to be received back from other
peers.
|
com.google.common.util.concurrent.ListenableFuture<List<Transaction>> |
Peer.downloadDependencies(Transaction tx)
Returns a future that wraps a list of all transactions that the given transaction depends on, recursively.
|
com.google.common.util.concurrent.ListenableFuture<Transaction> |
TransactionBroadcast.future() |
Map<Sha256Hash,Transaction> |
FilteredBlock.getAssociatedTransactions()
Gets the set of transactions which were provided using provideTransaction() which match in getTransactionHashes()
|
com.google.common.util.concurrent.ListenableFuture<Transaction> |
TransactionConfidence.getDepthFuture(int depth) |
com.google.common.util.concurrent.ListenableFuture<Transaction> |
TransactionConfidence.getDepthFuture(int depth,
Executor executor)
Returns a future that completes when the transaction has been confirmed by "depth" blocks.
|
com.google.common.util.concurrent.ListenableFuture<Transaction> |
Peer.getPeerMempoolTransaction(Sha256Hash hash)
Asks the connected peer for the given transaction from its memory pool.
|
Collection<Transaction> |
Wallet.getPendingTransactions()
Returns an immutable view of the transactions currently waiting for network confirmations.
|
List<Transaction> |
Wallet.getRecentTransactions(int numTransactions,
boolean includeDead)
Returns an list of N transactions, ordered by increasing age.
|
List<Transaction> |
StoredUndoableBlock.getTransactions()
Get the full list of transactions if it is stored, otherwise null.
|
List<Transaction> |
Block.getTransactions()
Returns an immutable list of transactions held in this block.
|
Set<Transaction> |
Wallet.getTransactions(boolean includeDead)
Returns a set of all transactions in the wallet.
|
List<Transaction> |
Wallet.getTransactionsByTime()
Returns all non-dead, active transactions ordered by recency.
|
Modifier and Type | Method and Description |
---|---|
void |
InventoryMessage.addTransaction(Transaction tx) |
void |
Block.addTransaction(Transaction t)
Adds a transaction to this block.
|
com.google.common.util.concurrent.ListenableFuture<Transaction> |
TransactionBroadcaster.broadcastTransaction(Transaction tx)
Broadcast the given transaction on the network
|
com.google.common.util.concurrent.ListenableFuture<Transaction> |
PeerGroup.broadcastTransaction(Transaction tx)
Calls
PeerGroup.broadcastTransaction(Transaction,int) with getMinBroadcastConnections() as the number
of connections to wait for before commencing broadcast. |
com.google.common.util.concurrent.ListenableFuture<Transaction> |
PeerGroup.broadcastTransaction(Transaction tx,
int minConnections)
Given a transaction, sends it un-announced to one peer and then waits for it to be received back from other
peers.
|
void |
Wallet.commitTx(Transaction tx)
Updates the wallet with the given transaction: puts it into the pending pool, sets the spent flags and runs
the onCoinsSent/onCoinsReceived event listener.
|
TransactionInput.ConnectionResult |
TransactionInput.connect(Transaction transaction,
TransactionInput.ConnectMode mode)
Connects this input to the relevant output of the referenced transaction.
|
com.google.common.util.concurrent.ListenableFuture<List<Transaction>> |
Peer.downloadDependencies(Transaction tx)
Returns a future that wraps a list of all transactions that the given transaction depends on, recursively.
|
static Wallet.SendRequest |
Wallet.SendRequest.forTx(Transaction tx)
Simply wraps a pre-built incomplete transaction provided by you.
|
Transaction |
MemoryPool.intern(Transaction tx)
Puts the tx into the table and returns either it, or a different Transaction object that has the same hash.
|
boolean |
Wallet.isPendingTransactionRelevant(Transaction tx)
This method is used by a
Peer to find out if a transaction that has been announced is interesting,
that is, whether we should bother downloading its dependencies and exploring the transaction to decide how
risky it is. |
boolean |
Wallet.isTransactionRelevant(Transaction tx)
Returns true if the given transaction sends coins to any of our keys, or has inputs spending any of our outputs,
and if includeDoubleSpending is true, also returns true if tx has inputs that are spending outputs which are
not ours but which are spent by pending transactions.
|
boolean |
BlockChainListener.isTransactionRelevant(Transaction tx)
Returns true if the given transaction is interesting to the listener.
|
boolean |
AbstractBlockChainListener.isTransactionRelevant(Transaction tx) |
boolean |
Wallet.isTransactionRisky(Transaction tx,
List<Transaction> dependencies)
Given a transaction and an optional list of dependencies (recursive/flattened), returns true if the given
transaction would be rejected by the analyzer, or false otherwise.
|
boolean |
Wallet.maybeCommitTx(Transaction tx)
Calls
Wallet.commitTx(com.google.bitcoin.core.Transaction) if tx is not already in the pending pool |
void |
WalletEventListener.onCoinsReceived(Wallet wallet,
Transaction tx,
BigInteger prevBalance,
BigInteger newBalance)
This is called when a transaction is seen that sends coins to this wallet, either because it
was broadcast across the network or because a block was received.
|
void |
AbstractWalletEventListener.onCoinsReceived(Wallet wallet,
Transaction tx,
BigInteger prevBalance,
BigInteger newBalance) |
void |
WalletEventListener.onCoinsSent(Wallet wallet,
Transaction tx,
BigInteger prevBalance,
BigInteger newBalance)
This is called when a transaction is seen that sends coins from this wallet, either
because it was broadcast across the network or because a block was received.
|
void |
AbstractWalletEventListener.onCoinsSent(Wallet wallet,
Transaction tx,
BigInteger prevBalance,
BigInteger newBalance) |
void |
TransactionConfidence.Listener.onConfidenceChanged(Transaction tx,
TransactionConfidence.Listener.ChangeReason reason) |
void |
PeerEventListener.onTransaction(Peer peer,
Transaction t)
Called when a new transaction is broadcast over the network.
|
void |
AbstractPeerEventListener.onTransaction(Peer peer,
Transaction t) |
void |
WalletEventListener.onTransactionConfidenceChanged(Wallet wallet,
Transaction tx)
Called when a transaction changes its confidence level.
|
void |
AbstractWalletEventListener.onTransactionConfidenceChanged(Wallet wallet,
Transaction tx) |
boolean |
FilteredBlock.provideTransaction(Transaction tx)
Provide this FilteredBlock with a transaction which is in its merkle tree
|
void |
Wallet.receiveFromBlock(Transaction tx,
StoredBlock block,
AbstractBlockChain.NewBlockType blockType,
int relativityOffset)
Called by the
BlockChain when we receive a new block that sends coins to one of our addresses or
spends coins from one of our addresses (note that a single transaction can do both). |
void |
BlockChainListener.receiveFromBlock(Transaction tx,
StoredBlock block,
AbstractBlockChain.NewBlockType blockType,
int relativityOffset)
Called by the
BlockChain when we receive a new block that contains a relevant transaction. |
void |
AbstractBlockChainListener.receiveFromBlock(Transaction tx,
StoredBlock block,
AbstractBlockChain.NewBlockType blockType,
int relativityOffset) |
void |
Wallet.receivePending(Transaction tx,
List<Transaction> dependencies)
Called when we have found a transaction (via network broadcast or otherwise) that is relevant to this wallet
and want to record it.
|
void |
Wallet.receivePending(Transaction tx,
List<Transaction> dependencies,
boolean overrideIsRelevant)
Called when we have found a transaction (via network broadcast or otherwise) that is relevant to this wallet
and want to record it.
|
Transaction |
MemoryPool.seen(Transaction tx,
PeerAddress byPeer)
Called by peers when they receive a "tx" message containing a valid serialized transaction.
|
void |
TransactionConfidence.setOverridingTransaction(Transaction overridingTransaction)
Called when the transaction becomes newly dead, that is, we learn that one of its inputs has already been spent
in such a way that the double-spending transaction takes precedence over this one.
|
static InventoryMessage |
InventoryMessage.with(Transaction... txns)
Creates a new inv message for the given transactions.
|
Modifier and Type | Method and Description |
---|---|
TransactionInput.ConnectionResult |
TransactionInput.connect(Map<Sha256Hash,Transaction> transactions,
TransactionInput.ConnectMode mode)
Connects this input to the relevant output of the referenced transaction if it's in the given map.
|
boolean |
Wallet.isTransactionRisky(Transaction tx,
List<Transaction> dependencies)
Given a transaction and an optional list of dependencies (recursive/flattened), returns true if the given
transaction would be rejected by the analyzer, or false otherwise.
|
void |
Wallet.receivePending(Transaction tx,
List<Transaction> dependencies)
Called when we have found a transaction (via network broadcast or otherwise) that is relevant to this wallet
and want to record it.
|
void |
Wallet.receivePending(Transaction tx,
List<Transaction> dependencies,
boolean overrideIsRelevant)
Called when we have found a transaction (via network broadcast or otherwise) that is relevant to this wallet
and want to record it.
|
Constructor and Description |
---|
TransactionBroadcast(PeerGroup peerGroup,
Transaction tx) |
TransactionConfidence(Transaction tx) |
TransactionInput(NetworkParameters params,
Transaction parentTransaction,
byte[] scriptBytes)
Creates an input that connects to nothing - used only in creation of coinbase transactions.
|
TransactionInput(NetworkParameters params,
Transaction parentTransaction,
byte[] payload,
int offset)
Deserializes an input message.
|
TransactionInput(NetworkParameters params,
Transaction parentTransaction,
byte[] msg,
int offset,
boolean parseLazy,
boolean parseRetain)
Deserializes an input message.
|
TransactionInput(NetworkParameters params,
Transaction parentTransaction,
byte[] scriptBytes,
TransactionOutPoint outpoint) |
TransactionOutPoint(NetworkParameters params,
long index,
Transaction fromTx) |
TransactionOutput(NetworkParameters params,
Transaction parent,
BigInteger value,
Address to)
Creates an output that sends 'value' to the given address (public key hash).
|
TransactionOutput(NetworkParameters params,
Transaction parent,
BigInteger value,
byte[] scriptBytes) |
TransactionOutput(NetworkParameters params,
Transaction parent,
BigInteger value,
ECKey to)
Creates an output that sends 'value' to the given public key using a simple CHECKSIG script (no addresses).
|
TransactionOutput(NetworkParameters params,
Transaction parent,
byte[] payload,
int offset)
Deserializes a transaction output message.
|
TransactionOutput(NetworkParameters params,
Transaction parent,
byte[] msg,
int offset,
boolean parseLazy,
boolean parseRetain)
Deserializes a transaction output message.
|
Constructor and Description |
---|
Block(NetworkParameters params,
long version,
Sha256Hash prevBlockHash,
Sha256Hash merkleRoot,
long time,
long difficultyTarget,
long nonce,
List<Transaction> transactions)
Construct a block initialized with all the given fields.
|
StoredUndoableBlock(Sha256Hash hash,
List<Transaction> transactions) |
Modifier and Type | Method and Description |
---|---|
boolean |
NativeBlockChainListener.isTransactionRelevant(Transaction tx) |
void |
NativeWalletEventListener.onCoinsReceived(Wallet wallet,
Transaction tx,
BigInteger prevBalance,
BigInteger newBalance) |
void |
NativeWalletEventListener.onCoinsSent(Wallet wallet,
Transaction tx,
BigInteger prevBalance,
BigInteger newBalance) |
void |
NativeTransactionConfidenceListener.onConfidenceChanged(Transaction tx,
TransactionConfidence.Listener.ChangeReason reason) |
void |
NativePeerEventListener.onTransaction(Peer peer,
Transaction t) |
void |
NativeWalletEventListener.onTransactionConfidenceChanged(Wallet wallet,
Transaction tx) |
void |
NativeBlockChainListener.receiveFromBlock(Transaction tx,
StoredBlock block,
AbstractBlockChain.NewBlockType blockType,
int relativityOffset) |
Modifier and Type | Method and Description |
---|---|
Transaction |
PaymentChannelClientState.getCompletedRefundTransaction()
Once the servers signature over the refund transaction has been received and provided using
PaymentChannelClientState.provideRefundSignature(byte[]) then this
method can be called to receive the now valid and broadcastable refund transaction. |
Transaction |
PaymentChannelClientState.getIncompleteRefundTransaction()
Returns a partially signed (invalid) refund transaction that should be passed to the server.
|
Transaction |
PaymentChannelServerState.getMultisigContract()
Gets the multisig contract which was used to initialize this channel
|
Transaction |
PaymentChannelClientState.getMultisigContract()
Returns the transaction that locks the money to the agreement of both parties.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<Transaction> |
PaymentChannelServerState.close()
Closes this channel and broadcasts the highest value payment transaction on the network.
|
Modifier and Type | Method and Description |
---|---|
boolean |
PaymentChannelClientState.isSettlementTransaction(Transaction tx)
Returns true if the tx is a valid settlement transaction.
|
com.google.common.util.concurrent.ListenableFuture<PaymentChannelServerState> |
PaymentChannelServerState.provideMultiSigContract(Transaction multisigContract)
Called when the client provides the multi-sig contract.
|
byte[] |
PaymentChannelServerState.provideRefundTransaction(Transaction refundTx,
byte[] clientMultiSigPubKey)
Called when the client provides the refund transaction.
|
Modifier and Type | Method and Description |
---|---|
Protos.Payment |
PaymentSession.getPayment(List<Transaction> txns,
Address refundAddr,
String memo)
Generates a Payment message based on the information in the PaymentRequest.
|
com.google.common.util.concurrent.ListenableFuture<PaymentSession.Ack> |
PaymentSession.sendPayment(List<Transaction> txns,
Address refundAddr,
String memo)
Generates a Payment message and sends the payment to the merchant who sent the PaymentRequest.
|
Modifier and Type | Method and Description |
---|---|
void |
Script.correctlySpends(Transaction txContainingThis,
long scriptSigIndex,
Script scriptPubKey,
boolean enforceP2SH)
Verifies that this script (interpreted as a scriptSig) correctly spends the given scriptPubKey.
|
Modifier and Type | Field and Description |
---|---|
protected Map<com.google.protobuf.ByteString,Transaction> |
WalletProtobufSerializer.txMap |
Modifier and Type | Field and Description |
---|---|
Transaction |
TestUtils.DoubleSpends.prevTx |
Transaction |
TestUtils.DoubleSpends.t1 |
Transaction |
TestUtils.DoubleSpends.t2 |
Transaction |
MockTransactionBroadcaster.TxFuturePair.tx |
Modifier and Type | Field and Description |
---|---|
com.google.common.util.concurrent.SettableFuture<Transaction> |
MockTransactionBroadcaster.TxFuturePair.future |
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.SettableFuture<Transaction> |
MockTransactionBroadcaster.broadcastTransaction(Transaction tx) |
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.SettableFuture<Transaction> |
MockTransactionBroadcaster.broadcastTransaction(Transaction tx) |
static TestUtils.BlockPair |
TestUtils.createFakeBlock(BlockStore blockStore,
long timeSeconds,
Transaction... transactions) |
static TestUtils.BlockPair |
TestUtils.createFakeBlock(BlockStore blockStore,
Transaction... transactions) |
static Block |
TestUtils.makeSolvedTestBlock(Block prev,
Transaction... transactions) |
static Transaction |
TestUtils.roundTripTransaction(NetworkParameters params,
Transaction tx)
Roundtrip a transaction so that it appears as if it has just come from the wire
|
protected Transaction |
TestWithWallet.sendMoneyToWallet(Transaction tx,
AbstractBlockChain.NewBlockType type) |
protected Transaction |
TestWithWallet.sendMoneyToWallet(Wallet wallet,
Transaction tx,
AbstractBlockChain.NewBlockType type) |
Constructor and Description |
---|
MockTransactionBroadcaster.TxFuturePair(Transaction tx,
com.google.common.util.concurrent.SettableFuture<Transaction> future) |
Constructor and Description |
---|
MockTransactionBroadcaster.TxFuturePair(Transaction tx,
com.google.common.util.concurrent.SettableFuture<Transaction> future) |
Modifier and Type | Field and Description |
---|---|
protected Transaction |
DefaultRiskAnalysis.nonFinal |
protected Transaction |
DefaultRiskAnalysis.tx |
Modifier and Type | Field and Description |
---|---|
protected List<Transaction> |
DefaultRiskAnalysis.dependencies |
Modifier and Type | Method and Description |
---|---|
Transaction |
DefaultRiskAnalysis.getNonFinal()
Returns the transaction that was found to be non-final, or null.
|
Transaction |
DefaultRiskAnalysis.getNonStandard()
Returns the transaction that was found to be non-standard, or null.
|
Transaction |
WalletTransaction.getTransaction() |
Transaction |
DefaultRiskAnalysis.isStandard(Transaction tx)
Checks if a transaction is considered "standard" by the reference client's IsStandardTx and AreInputsStandard
functions.
|
Modifier and Type | Method and Description |
---|---|
RiskAnalysis |
RiskAnalysis.Analyzer.create(Wallet wallet,
Transaction tx,
List<Transaction> dependencies) |
DefaultRiskAnalysis |
DefaultRiskAnalysis.Analyzer.create(Wallet wallet,
Transaction tx,
List<Transaction> dependencies) |
static boolean |
DefaultCoinSelector.isSelectable(Transaction tx) |
Transaction |
DefaultRiskAnalysis.isStandard(Transaction tx)
Checks if a transaction is considered "standard" by the reference client's IsStandardTx and AreInputsStandard
functions.
|
protected boolean |
DefaultCoinSelector.shouldSelect(Transaction tx)
Sub-classes can override this to just customize whether transactions are usable, but keep age sorting.
|
protected boolean |
AllowUnconfirmedCoinSelector.shouldSelect(Transaction tx) |
Modifier and Type | Method and Description |
---|---|
RiskAnalysis |
RiskAnalysis.Analyzer.create(Wallet wallet,
Transaction tx,
List<Transaction> dependencies) |
DefaultRiskAnalysis |
DefaultRiskAnalysis.Analyzer.create(Wallet wallet,
Transaction tx,
List<Transaction> dependencies) |
Constructor and Description |
---|
WalletTransaction(WalletTransaction.Pool pool,
Transaction transaction) |
Copyright © 2014. All rights reserved.