Uses of Class
com.google.bitcoin.core.Transaction

Packages that use Transaction
com.google.bitcoin.core   
com.google.bitcoin.jni   
com.google.bitcoin.protocols.channels   
com.google.bitcoin.protocols.payments   
com.google.bitcoin.script   
com.google.bitcoin.store   
com.google.bitcoin.utils   
com.google.bitcoin.wallet   
 

Uses of Transaction in com.google.bitcoin.core
 

Fields in com.google.bitcoin.core declared as Transaction
 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.
 

Fields in com.google.bitcoin.core with type parameters of type Transaction
 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.
 

Methods in com.google.bitcoin.core that return Transaction
 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.
 

Methods in com.google.bitcoin.core that return types with arguments of type Transaction
 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.
 

Methods in com.google.bitcoin.core with parameters of type Transaction
 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.
 

Method parameters in com.google.bitcoin.core with type arguments of type Transaction
 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.
 

Constructors in com.google.bitcoin.core with parameters of type Transaction
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 parameters in com.google.bitcoin.core with type arguments of type Transaction
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)
           
 

Uses of Transaction in com.google.bitcoin.jni
 

Methods in com.google.bitcoin.jni with parameters of type Transaction
 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)
           
 

Uses of Transaction in com.google.bitcoin.protocols.channels
 

Methods in com.google.bitcoin.protocols.channels that return Transaction
 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.
 

Methods in com.google.bitcoin.protocols.channels that return types with arguments of type Transaction
 com.google.common.util.concurrent.ListenableFuture<Transaction> PaymentChannelServerState.close()
          Closes this channel and broadcasts the highest value payment transaction on the network.
 

Methods in com.google.bitcoin.protocols.channels with parameters of type Transaction
 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.
 

Uses of Transaction in com.google.bitcoin.protocols.payments
 

Method parameters in com.google.bitcoin.protocols.payments with type arguments of type Transaction
 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.
 

Uses of Transaction in com.google.bitcoin.script
 

Methods in com.google.bitcoin.script with parameters of type Transaction
 void Script.correctlySpends(Transaction txContainingThis, long scriptSigIndex, Script scriptPubKey, boolean enforceP2SH)
          Verifies that this script (interpreted as a scriptSig) correctly spends the given scriptPubKey.
 

Uses of Transaction in com.google.bitcoin.store
 

Fields in com.google.bitcoin.store with type parameters of type Transaction
protected  Map<com.google.protobuf.ByteString,Transaction> WalletProtobufSerializer.txMap
           
 

Uses of Transaction in com.google.bitcoin.utils
 

Fields in com.google.bitcoin.utils declared as Transaction
 Transaction TestUtils.DoubleSpends.prevTx
           
 Transaction TestUtils.DoubleSpends.t1
           
 Transaction TestUtils.DoubleSpends.t2
           
 Transaction MockTransactionBroadcaster.TxFuturePair.tx
           
 

Fields in com.google.bitcoin.utils with type parameters of type Transaction
 com.google.common.util.concurrent.SettableFuture<Transaction> MockTransactionBroadcaster.TxFuturePair.future
           
 

Methods in com.google.bitcoin.utils that return Transaction
static Transaction TestUtils.createFakeTx(NetworkParameters params, BigInteger nanocoins, Address to)
           
static Transaction[] TestUtils.createFakeTx(NetworkParameters params, BigInteger nanocoins, Address to, Address from)
           
static Transaction TestUtils.createFakeTx(NetworkParameters params, BigInteger nanocoins, ECKey to)
           
static Transaction TestUtils.createFakeTxWithChangeAddress(NetworkParameters params, BigInteger nanocoins, Address to, Address changeOutput)
           
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(BigInteger value, AbstractBlockChain.NewBlockType type)
           
protected  Transaction TestWithWallet.sendMoneyToWallet(Transaction tx, AbstractBlockChain.NewBlockType type)
           
protected  Transaction TestWithWallet.sendMoneyToWallet(Wallet wallet, BigInteger value, Address toAddress, AbstractBlockChain.NewBlockType type)
           
protected  Transaction TestWithWallet.sendMoneyToWallet(Wallet wallet, BigInteger value, ECKey toPubKey, AbstractBlockChain.NewBlockType type)
           
protected  Transaction TestWithWallet.sendMoneyToWallet(Wallet wallet, Transaction tx, AbstractBlockChain.NewBlockType type)
           
 Transaction MockTransactionBroadcaster.waitForTransaction()
           
 

Methods in com.google.bitcoin.utils that return types with arguments of type Transaction
 com.google.common.util.concurrent.SettableFuture<Transaction> MockTransactionBroadcaster.broadcastTransaction(Transaction tx)
           
 

Methods in com.google.bitcoin.utils with parameters of type Transaction
 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)
           
 

Constructors in com.google.bitcoin.utils with parameters of type Transaction
MockTransactionBroadcaster.TxFuturePair(Transaction tx, com.google.common.util.concurrent.SettableFuture<Transaction> future)
           
 

Constructor parameters in com.google.bitcoin.utils with type arguments of type Transaction
MockTransactionBroadcaster.TxFuturePair(Transaction tx, com.google.common.util.concurrent.SettableFuture<Transaction> future)
           
 

Uses of Transaction in com.google.bitcoin.wallet
 

Fields in com.google.bitcoin.wallet declared as Transaction
protected  Transaction DefaultRiskAnalysis.nonFinal
           
protected  Transaction DefaultRiskAnalysis.tx
           
 

Fields in com.google.bitcoin.wallet with type parameters of type Transaction
protected  List<Transaction> DefaultRiskAnalysis.dependencies
           
 

Methods in com.google.bitcoin.wallet that return Transaction
 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.
 

Methods in com.google.bitcoin.wallet with parameters of type Transaction
 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)
           
 

Method parameters in com.google.bitcoin.wallet with type arguments of type Transaction
 RiskAnalysis RiskAnalysis.Analyzer.create(Wallet wallet, Transaction tx, List<Transaction> dependencies)
           
 DefaultRiskAnalysis DefaultRiskAnalysis.Analyzer.create(Wallet wallet, Transaction tx, List<Transaction> dependencies)
           
 

Constructors in com.google.bitcoin.wallet with parameters of type Transaction
WalletTransaction(WalletTransaction.Pool pool, Transaction transaction)
           
 



Copyright © 2014. All rights reserved.