Package | Description |
---|---|
com.google.bitcoin.core | |
com.google.bitcoin.protocols.payments | |
com.google.bitcoin.script | |
com.google.bitcoin.store | |
com.google.bitcoin.uri | |
com.google.bitcoin.utils |
Modifier and Type | Field and Description |
---|---|
Address |
Wallet.SendRequest.changeAddress
"Change" means the difference between the value gathered by a transactions inputs (the size of which you
don't really control as it depends on who sent you money), and the value being sent somewhere else.
|
Modifier and Type | Method and Description |
---|---|
static Address |
Address.fromP2SHHash(NetworkParameters params,
byte[] hash160)
Returns an Address that represents the given P2SH script hash.
|
static Address |
Address.fromP2SHScript(NetworkParameters params,
Script scriptPubKey)
Returns an Address that represents the script hash extracted from the given scriptPubKey
|
Address |
Wallet.getChangeAddress()
Returns the address used for change outputs.
|
Address |
TransactionInput.getFromAddress()
Deprecated.
|
Address |
ECKey.toAddress(NetworkParameters params)
Returns the address that corresponds to the public part of this ECKey.
|
Modifier and Type | Method and Description |
---|---|
TransactionOutput |
Transaction.addOutput(BigInteger value,
Address address)
Creates an output based on the given address and value, adds it to this transaction, and returns the new output.
|
boolean |
Wallet.addWatchedAddress(Address address)
Same as
Wallet.addWatchedAddress(Address, long) with the current time as the creation time. |
boolean |
Wallet.addWatchedAddress(Address address,
long creationTime)
Adds the given address to the wallet to be watched.
|
Block |
Block.createNextBlock(Address to) |
Block |
Block.createNextBlock(Address to,
BigInteger value) |
Block |
Block.createNextBlock(Address to,
long time)
Returns a solved block that builds on top of this one.
|
Block |
Block.createNextBlock(Address to,
TransactionOutPoint prevOut) |
Transaction |
Wallet.createSend(Address address,
BigInteger nanocoins)
Statelessly creates a transaction that sends the given value to address.
|
static Wallet.SendRequest |
Wallet.SendRequest.emptyWallet(Address destination) |
boolean |
Wallet.isAddressWatched(Address address)
Return true if we are watching this address.
|
Wallet.SendResult |
Wallet.sendCoins(TransactionBroadcaster broadcaster,
Address to,
BigInteger value)
Sends coins to the given address, via the given
PeerGroup . |
static Wallet.SendRequest |
Wallet.SendRequest.to(Address destination,
BigInteger value)
Creates a new SendRequest to the given address for the given value.
|
Modifier and Type | Method and Description |
---|---|
int |
Wallet.addWatchedAddresses(List<Address> addresses,
long creationTime)
Adds the given address to the wallet to be watched.
|
Constructor and Description |
---|
TransactionOutput(NetworkParameters params,
Transaction parent,
BigInteger value,
Address to)
Creates an output that sends 'value' to the given address (public key hash).
|
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 |
---|---|
Address |
Script.getFromAddress(NetworkParameters params)
Deprecated.
|
Address |
Script.getToAddress(NetworkParameters params)
Gets the destination address from this script, if it's in the required form (see getPubKey).
|
Modifier and Type | Method and Description |
---|---|
static Script |
ScriptBuilder.createOutputScript(Address to)
Creates a scriptPubKey that encodes payment to the given address.
|
Modifier and Type | Method and Description |
---|---|
BigInteger |
PostgresFullPrunedBlockStore.calculateBalanceForAddress(Address address)
Calculate the balance for a coinbase, to-address, or p2sh address.
|
Modifier and Type | Method and Description |
---|---|
Address |
BitcoinURI.getAddress()
The Bitcoin Address from the URI, if one was present.
|
Modifier and Type | Method and Description |
---|---|
static String |
BitcoinURI.convertToBitcoinURI(Address address,
BigInteger amount,
String label,
String message) |
Modifier and Type | Field and Description |
---|---|
protected Address |
TestWithWallet.myAddress |
Modifier and Type | Method and Description |
---|---|
static TestUtils.DoubleSpends |
TestUtils.createFakeDoubleSpendTxns(NetworkParameters params,
Address to)
Creates two transactions that spend the same (fake) output.
|
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.createFakeTxWithChangeAddress(NetworkParameters params,
BigInteger nanocoins,
Address to,
Address changeOutput) |
static Block |
TestUtils.makeSolvedTestBlock(BlockStore blockStore,
Address coinsTo) |
protected Transaction |
TestWithWallet.sendMoneyToWallet(Wallet wallet,
BigInteger value,
Address toAddress,
AbstractBlockChain.NewBlockType type) |
Copyright © 2014. All rights reserved.