Package | Description |
---|---|
org.bitcoinj.core |
The core package contains classes for network messages like
Block and
Transaction , peer connectivity via PeerGroup ,
and block chain management. |
org.bitcoinj.crypto |
The crypto package contains classes that work with key derivation algorithms like scrypt (passwords to AES keys),
BIP 32 hierarchies (chains of keys from a root seed), X.509 utilities for the payment protocol and other general
cryptography tasks.
|
org.bitcoinj.kits |
High level wrapper APIs around the bitcoinj building blocks.
|
org.bitcoinj.net.discovery |
Classes that know how to discover peers in the P2P network using DNS, IRC or DNS via Tor (orchid).
|
org.bitcoinj.params |
Network parameters encapsulate some of the differences between different Bitcoin networks such as the main
network, the testnet, regtest mode, unit testing params and so on.
|
org.bitcoinj.protocols.payments |
The BIP70 payment protocol wraps Bitcoin transactions and adds various useful features like memos, refund addresses
and authentication.
|
org.bitcoinj.script |
Classes for working with and executing Bitcoin script programs, as embedded in inputs and outputs.
|
org.bitcoinj.store |
Block stores persist blockchain data downloaded from remote peers.
|
org.bitcoinj.uri |
Parsing and handling of bitcoin: textual URIs as found in qr codes and web links.
|
org.bitcoinj.utils |
Formatting monetary amounts, representing exchange rates, a program for loading Bitcoin Core saved block files,
a class to control how bitcoinj uses threads and misc other utility classes that don't fit anywhere else.
|
org.bitcoinj.wallet |
Classes that support the
Wallet , which knows how to find and save transactions relevant to
a set of keys or scripts, calculate balances, and spend money: the wallet has many features and can be extended
in various ways, please refer to the website for documentation on how to use it. |
Modifier and Type | Field and Description |
---|---|
protected NetworkParameters |
AbstractBlockChain.params |
protected NetworkParameters |
CheckpointManager.params |
protected NetworkParameters |
PeerGroup.params |
protected NetworkParameters |
Message.params |
Modifier and Type | Method and Description |
---|---|
static NetworkParameters |
NetworkParameters.fromID(String id)
Returns the network parameters for the given string ID or NULL if not recognized.
|
static NetworkParameters |
NetworkParameters.fromPmtProtocolID(String pmtProtocolId)
Returns the network parameters for the given string paymentProtocolID or NULL if not recognized.
|
NetworkParameters |
Address.getParameters()
Examines the version byte of the address and attempts to find a matching NetworkParameters.
|
NetworkParameters |
BitcoinSerializer.getParameters()
Get the network parameters for this serializer.
|
static NetworkParameters |
Address.getParametersFromAddress(String address)
Given an address, examines the version byte and attempts to find a matching NetworkParameters.
|
NetworkParameters |
UTXOProvider.getParams()
The
NetworkParameters of this provider. |
NetworkParameters |
Message.getParams()
Network parameters this message was created with.
|
NetworkParameters |
Context.getParams()
Returns the
NetworkParameters specified when this context was (auto) created. |
static NetworkParameters |
NetworkParameters.prodNet()
Deprecated.
|
static NetworkParameters |
NetworkParameters.regTests()
Deprecated.
|
static NetworkParameters |
NetworkParameters.testNet()
Deprecated.
|
static NetworkParameters |
NetworkParameters.testNet2()
Deprecated.
|
static NetworkParameters |
NetworkParameters.testNet3()
Deprecated.
|
static NetworkParameters |
NetworkParameters.unitTests()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static PartialMerkleTree |
PartialMerkleTree.buildFromLeaves(NetworkParameters params,
byte[] includeBits,
List<Sha256Hash> allLeafHashes)
Calculates a PMT given the list of leaf hashes and which leaves need to be included.
|
static void |
CheckpointManager.checkpoint(NetworkParameters params,
InputStream checkpoints,
BlockStore store,
long time)
Convenience method that creates a CheckpointManager, loads the given data, gets the checkpoint for the given
time, then inserts it into the store and sets that to be the chain head.
|
static StoredBlock |
StoredBlock.deserializeCompact(NetworkParameters params,
ByteBuffer buffer)
De-serializes the stored block from a custom packed format.
|
void |
ECKey.formatKeyWithAddress(boolean includePrivateKeys,
StringBuilder builder,
NetworkParameters params) |
static DumpedPrivateKey |
DumpedPrivateKey.fromBase58(NetworkParameters params,
String base58)
Construct a private key from its Base58 representation.
|
static Address |
Address.fromBase58(NetworkParameters params,
String base58)
Construct an address from its Base58 representation.
|
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 |
TransactionOutput.getAddressFromP2PKHScript(NetworkParameters networkParameters)
If the output script pays to an address as in
P2PKH, return the address of the receiver, i.e., a base58 encoded hash of the public key in the script.
|
Address |
TransactionOutput.getAddressFromP2SH(NetworkParameters networkParameters)
If the output script pays to a redeem script, return the address of the redeem script as described by,
i.e., a base58 encoding of [one-byte version][20-byte hash][4-byte checksum], where the 20-byte hash refers to
the redeem script.
|
static Context |
Context.getOrCreate(NetworkParameters params) |
String |
ECKey.getPrivateKeyAsWiF(NetworkParameters params) |
DumpedPrivateKey |
ECKey.getPrivateKeyEncoded(NetworkParameters params)
Exports the private key in the form used by Bitcoin Core's "dumpprivkey" and "importprivkey" commands.
|
static PeerAddress |
PeerAddress.localhost(NetworkParameters params) |
static PeerGroup |
PeerGroup.newWithTor(NetworkParameters params,
AbstractBlockChain chain,
com.subgraph.orchid.TorClient torClient)
|
static InputStream |
CheckpointManager.openStream(NetworkParameters params)
Returns a checkpoints stream pointing to inside the bitcoinj JAR
|
Address |
ECKey.toAddress(NetworkParameters params)
Returns the address that corresponds to the public part of this ECKey.
|
String |
ECKey.toStringWithPrivate(NetworkParameters params)
Produce a string rendering of the ECKey INCLUDING the private key.
|
Constructor and Description |
---|
AbstractBlockChain(NetworkParameters params,
List<? extends Wallet> transactionReceivedListeners,
BlockStore blockStore)
|
Address(NetworkParameters params,
byte[] hash160)
Construct an address from parameters and the hash160 form.
|
Address(NetworkParameters params,
int version,
byte[] hash160)
Construct an address from parameters, the address version, and the hash160 form.
|
Address(NetworkParameters params,
String address)
Deprecated.
|
AlertMessage(NetworkParameters params,
byte[] payloadBytes) |
BitcoinSerializer(NetworkParameters params,
boolean parseRetain)
Constructs a BitcoinSerializer with the given behavior.
|
Block(NetworkParameters params,
byte[] payloadBytes)
Deprecated.
Use
MessageSerializer.makeBlock(byte[]) instead. |
Block(NetworkParameters params,
byte[] payloadBytes,
int offset,
Message parent,
MessageSerializer serializer,
int length)
Construct a block object from the Bitcoin wire format.
|
Block(NetworkParameters params,
byte[] payloadBytes,
int offset,
MessageSerializer serializer,
int length)
Construct a block object from the Bitcoin wire format.
|
Block(NetworkParameters params,
byte[] payloadBytes,
MessageSerializer serializer,
int length)
Construct a block object from the Bitcoin wire format.
|
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.
|
BlockChain(NetworkParameters params,
BlockStore blockStore)
|
BlockChain(NetworkParameters params,
List<? extends Wallet> wallets,
BlockStore blockStore)
|
BlockChain(NetworkParameters params,
Wallet wallet,
BlockStore blockStore)
|
BloomFilter(NetworkParameters params,
byte[] payloadBytes)
Construct a BloomFilter by deserializing payloadBytes
|
CheckpointManager(NetworkParameters params,
InputStream inputStream)
Loads the checkpoints from the given stream
|
ChildMessage(NetworkParameters params) |
ChildMessage(NetworkParameters params,
byte[] payload,
int offset) |
ChildMessage(NetworkParameters params,
byte[] payload,
int offset,
int protocolVersion) |
ChildMessage(NetworkParameters params,
byte[] payload,
int offset,
int protocolVersion,
Message parent,
MessageSerializer setSerializer,
int length) |
ChildMessage(NetworkParameters params,
byte[] payload,
int offset,
Message parent,
MessageSerializer setSerializer,
int length) |
Context(NetworkParameters params)
Creates a new context object.
|
Context(NetworkParameters params,
int eventHorizon,
Coin feePerKb,
boolean ensureMinRequiredFee)
Creates a new custom context object.
|
DumpedPrivateKey(NetworkParameters params,
String encoded)
Deprecated.
|
EmptyMessage(NetworkParameters params) |
EmptyMessage(NetworkParameters params,
byte[] payload,
int offset) |
FilteredBlock(NetworkParameters params,
Block header,
PartialMerkleTree pmt) |
FilteredBlock(NetworkParameters params,
byte[] payloadBytes) |
FullPrunedBlockChain(NetworkParameters params,
FullPrunedBlockStore blockStore)
|
FullPrunedBlockChain(NetworkParameters params,
List<Wallet> listeners,
FullPrunedBlockStore blockStore)
|
FullPrunedBlockChain(NetworkParameters params,
Wallet wallet,
FullPrunedBlockStore blockStore)
Constructs a block chain connected to the given wallet and store.
|
GetAddrMessage(NetworkParameters params) |
GetBlocksMessage(NetworkParameters params,
byte[] payload) |
GetBlocksMessage(NetworkParameters params,
List<Sha256Hash> locator,
Sha256Hash stopHash) |
GetDataMessage(NetworkParameters params) |
GetDataMessage(NetworkParameters params,
byte[] payloadBytes) |
GetDataMessage(NetworkParameters params,
byte[] payload,
MessageSerializer serializer,
int length)
Deserializes a 'getdata' message.
|
GetHeadersMessage(NetworkParameters params,
byte[] payload) |
GetHeadersMessage(NetworkParameters params,
List<Sha256Hash> locator,
Sha256Hash stopHash) |
GetUTXOsMessage(NetworkParameters params,
byte[] payloadBytes) |
GetUTXOsMessage(NetworkParameters params,
List<TransactionOutPoint> outPoints,
boolean includeMempool) |
HeadersMessage(NetworkParameters params,
Block... headers) |
HeadersMessage(NetworkParameters params,
byte[] payload) |
HeadersMessage(NetworkParameters params,
List<Block> headers) |
InventoryMessage(NetworkParameters params) |
InventoryMessage(NetworkParameters params,
byte[] bytes) |
InventoryMessage(NetworkParameters params,
byte[] payload,
MessageSerializer serializer,
int length)
Deserializes an 'inv' message.
|
ListMessage(NetworkParameters params) |
ListMessage(NetworkParameters params,
byte[] bytes) |
ListMessage(NetworkParameters params,
byte[] payload,
MessageSerializer serializer,
int length) |
Message(NetworkParameters params) |
Message(NetworkParameters params,
byte[] payload,
int offset) |
Message(NetworkParameters params,
byte[] payload,
int offset,
int protocolVersion) |
Message(NetworkParameters params,
byte[] payload,
int offset,
int protocolVersion,
MessageSerializer serializer,
int length) |
Message(NetworkParameters params,
byte[] payload,
int offset,
MessageSerializer serializer,
int length) |
NotFoundMessage(NetworkParameters params) |
NotFoundMessage(NetworkParameters params,
byte[] payloadBytes) |
NotFoundMessage(NetworkParameters params,
List<InventoryItem> items) |
PartialMerkleTree(NetworkParameters params,
byte[] payloadBytes,
int offset) |
PartialMerkleTree(NetworkParameters params,
byte[] bits,
List<Sha256Hash> hashes,
int origTxCount)
Constructs a new PMT with the given bit set (little endian) and the raw list of hashes including internal hashes,
taking ownership of the list.
|
Peer(NetworkParameters params,
AbstractBlockChain blockChain,
PeerAddress peerAddress,
String thisSoftwareName,
String thisSoftwareVersion)
Construct a peer that reads/writes from the given chain.
|
Peer(NetworkParameters params,
VersionMessage ver,
AbstractBlockChain chain,
PeerAddress remoteAddress)
Construct a peer that reads/writes from the given block chain.
|
Peer(NetworkParameters params,
VersionMessage ver,
PeerAddress remoteAddress,
AbstractBlockChain chain)
Construct a peer that reads/writes from the given block chain.
|
Peer(NetworkParameters params,
VersionMessage ver,
PeerAddress remoteAddress,
AbstractBlockChain chain,
int downloadTxDependencyDepth)
Construct a peer that reads/writes from the given block chain.
|
PeerAddress(NetworkParameters params,
byte[] payload,
int offset,
int protocolVersion)
Construct a peer address from a serialized payload.
|
PeerAddress(NetworkParameters params,
byte[] payload,
int offset,
int protocolVersion,
Message parent,
MessageSerializer serializer)
Construct a peer address from a serialized payload.
|
PeerAddress(NetworkParameters params,
InetAddress addr)
Constructs a peer address from the given IP address.
|
PeerAddress(NetworkParameters params,
InetAddress addr,
int port)
Constructs a peer address from the given IP address and port.
|
PeerAddress(NetworkParameters params,
InetSocketAddress addr)
Constructs a peer address from an
InetSocketAddress . |
PeerAddress(NetworkParameters params,
String hostname,
int port)
Constructs a peer address from a stringified hostname+port.
|
PeerGroup(NetworkParameters params)
|
PeerGroup(NetworkParameters params,
AbstractBlockChain chain)
|
PeerGroup(NetworkParameters params,
AbstractBlockChain chain,
ClientConnectionManager connectionManager)
|
PeerSocketHandler(NetworkParameters params,
InetSocketAddress remoteIp) |
PeerSocketHandler(NetworkParameters params,
PeerAddress peerAddress) |
Ping(NetworkParameters params,
byte[] payloadBytes) |
Pong(NetworkParameters params,
byte[] payloadBytes) |
RejectMessage(NetworkParameters params,
byte[] payload) |
RejectMessage(NetworkParameters params,
RejectMessage.RejectCode code,
Sha256Hash hash,
String message,
String reason)
Constructs a reject message that fingers the object with the given hash as rejected for the given reason.
|
Transaction(NetworkParameters params) |
Transaction(NetworkParameters params,
byte[] payloadBytes)
Creates a transaction from the given serialized bytes, eg, from a block or a tx network message.
|
Transaction(NetworkParameters params,
byte[] payload,
int offset)
Creates a transaction by reading payload starting from offset bytes in.
|
Transaction(NetworkParameters params,
byte[] payload,
int offset,
Message parent,
MessageSerializer setSerializer,
int length)
Creates a transaction by reading payload starting from offset bytes in.
|
Transaction(NetworkParameters params,
byte[] payload,
Message parent,
MessageSerializer setSerializer,
int length)
Creates a transaction by reading payload.
|
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[] payload,
int offset,
MessageSerializer serializer)
Deserializes an input message.
|
TransactionInput(NetworkParameters params,
Transaction parentTransaction,
byte[] scriptBytes,
TransactionOutPoint outpoint) |
TransactionInput(NetworkParameters params,
Transaction parentTransaction,
byte[] scriptBytes,
TransactionOutPoint outpoint,
Coin value) |
TransactionOutPoint(NetworkParameters params,
byte[] payload,
int offset)
/**
Deserializes the message.
|
TransactionOutPoint(NetworkParameters params,
byte[] payload,
int offset,
Message parent,
MessageSerializer serializer)
Deserializes the message.
|
TransactionOutPoint(NetworkParameters params,
long index,
Sha256Hash hash) |
TransactionOutPoint(NetworkParameters params,
long index,
Transaction fromTx) |
TransactionOutPoint(NetworkParameters params,
TransactionOutput connectedOutput) |
TransactionOutput(NetworkParameters params,
Transaction parent,
byte[] payload,
int offset)
Deserializes a transaction output message.
|
TransactionOutput(NetworkParameters params,
Transaction parent,
byte[] payload,
int offset,
MessageSerializer serializer)
Deserializes a transaction output message.
|
TransactionOutput(NetworkParameters params,
Transaction parent,
Coin value,
Address to)
Creates an output that sends 'value' to the given address (public key hash).
|
TransactionOutput(NetworkParameters params,
Transaction parent,
Coin value,
byte[] scriptBytes) |
TransactionOutput(NetworkParameters params,
Transaction parent,
Coin value,
ECKey to)
Creates an output that sends 'value' to the given public key using a simple CHECKSIG script (no addresses).
|
UnknownMessage(NetworkParameters params,
String name,
byte[] payloadBytes) |
UTXOsMessage(NetworkParameters params,
byte[] payloadBytes) |
UTXOsMessage(NetworkParameters params,
List<TransactionOutput> outputs,
long[] heights,
Sha256Hash chainHead,
long height)
Provide an array of output objects, with nulls indicating that the output was missing.
|
VersionAck(NetworkParameters params,
byte[] payload) |
VersionMessage(NetworkParameters params,
byte[] payload) |
VersionMessage(NetworkParameters params,
int newBestHeight) |
Modifier and Type | Field and Description |
---|---|
NetworkParameters |
BIP38PrivateKey.params |
Modifier and Type | Method and Description |
---|---|
static DeterministicKey |
DeterministicKey.deserialize(NetworkParameters params,
byte[] serializedKey)
Deserialize an HD Key with no parent
|
static DeterministicKey |
DeterministicKey.deserialize(NetworkParameters params,
byte[] serializedKey,
DeterministicKey parent)
Deserialize an HD Key.
|
static DeterministicKey |
DeterministicKey.deserializeB58(DeterministicKey parent,
String base58,
NetworkParameters params)
Deserialize a base-58-encoded HD Key.
|
static DeterministicKey |
DeterministicKey.deserializeB58(String base58,
NetworkParameters params)
Deserialize a base-58-encoded HD Key with no parent
|
void |
DeterministicKey.formatKeyWithAddress(boolean includePrivateKeys,
StringBuilder builder,
NetworkParameters params) |
static BIP38PrivateKey |
BIP38PrivateKey.fromBase58(NetworkParameters params,
String base58)
Construct a password-protected private key from its Base58 representation.
|
byte[] |
DeterministicKey.serializePrivate(NetworkParameters params) |
String |
DeterministicKey.serializePrivB58(NetworkParameters params) |
String |
DeterministicKey.serializePubB58(NetworkParameters params) |
byte[] |
DeterministicKey.serializePublic(NetworkParameters params) |
Constructor and Description |
---|
BIP38PrivateKey(NetworkParameters params,
String encoded)
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected NetworkParameters |
WalletAppKit.params |
Modifier and Type | Method and Description |
---|---|
NetworkParameters |
WalletAppKit.params() |
Constructor and Description |
---|
WalletAppKit(NetworkParameters params,
File directory,
String filePrefix)
Creates a new WalletAppKit, with a newly created
Context . |
Modifier and Type | Field and Description |
---|---|
protected NetworkParameters |
MultiplexingDiscovery.netParams |
Modifier and Type | Method and Description |
---|---|
static MultiplexingDiscovery |
MultiplexingDiscovery.forServices(NetworkParameters params,
long services)
Builds a suitable set of peer discoveries.
|
Constructor and Description |
---|
DnsDiscovery(NetworkParameters netParams)
Supports finding peers through DNS A records.
|
DnsDiscovery(String[] dnsSeeds,
NetworkParameters params)
Supports finding peers through DNS A records.
|
DnsSeedDiscovery(NetworkParameters params,
String hostname) |
HttpDiscovery(NetworkParameters params,
HttpDiscovery.Details details)
Constructs a discovery object that will read data from the given HTTP[S] URI and, if a public key is provided,
will check the signature using that key.
|
HttpDiscovery(NetworkParameters params,
HttpDiscovery.Details details,
com.squareup.okhttp.OkHttpClient client) |
HttpDiscovery(NetworkParameters params,
URI uri,
ECKey pubkey)
Constructs a discovery object that will read data from the given HTTP[S] URI and, if a public key is provided,
will check the signature using that key.
|
MultiplexingDiscovery(NetworkParameters params,
List<PeerDiscovery> seeds)
Will query the given seeds in parallel before producing a merged response.
|
SeedPeers(int[] seedAddrs,
NetworkParameters params)
Supports finding peers by IP addresses
|
SeedPeers(NetworkParameters params)
Supports finding peers by IP addresses
|
TorDiscovery(NetworkParameters netParams,
com.subgraph.orchid.TorClient torClient)
Supports finding peers through Tor.
|
TorDiscovery(String[] hostNames,
NetworkParameters netParams,
com.subgraph.orchid.TorClient torClient)
Supports finding peers through Tor.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractBitcoinNetParams
Parameters for Bitcoin-like networks.
|
class |
MainNetParams
Parameters for the main production network on which people trade goods and services.
|
class |
RegTestParams
Network parameters for the regression test mode of bitcoind in which all blocks are trivially solvable.
|
class |
TestNet2Params
Parameters for the old version 2 testnet.
|
class |
TestNet3Params
Parameters for the testnet, a separate public instance of Bitcoin that has relaxed rules suitable for development
and testing of applications and new Bitcoin versions.
|
class |
UnitTestParams
Network parameters used by the bitcoinj unit tests (and potentially your own).
|
Modifier and Type | Method and Description |
---|---|
static Set<? extends NetworkParameters> |
Networks.get() |
Modifier and Type | Method and Description |
---|---|
static void |
Networks.register(NetworkParameters network) |
static void |
Networks.unregister(NetworkParameters network) |
Modifier and Type | Method and Description |
---|---|
static void |
Networks.register(Collection<? extends NetworkParameters> networks) |
Modifier and Type | Method and Description |
---|---|
NetworkParameters |
PaymentSession.getNetworkParameters()
Gets the params as read from the PaymentRequest.network field: main is the default if missing.
|
Modifier and Type | Method and Description |
---|---|
static Protos.PaymentRequest.Builder |
PaymentProtocol.createPaymentRequest(NetworkParameters params,
Coin amount,
Address toAddress,
String memo,
String paymentUrl,
byte[] merchantData)
Create a payment request with one standard pay to address output.
|
static Protos.PaymentRequest.Builder |
PaymentProtocol.createPaymentRequest(NetworkParameters params,
List<Protos.Output> outputs,
String memo,
String paymentUrl,
byte[] merchantData)
Create a payment request.
|
static List<Transaction> |
PaymentProtocol.parseTransactionsFromPaymentMessage(NetworkParameters params,
Protos.Payment paymentMessage)
Parse transactions from payment message.
|
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).
|
Address |
Script.getToAddress(NetworkParameters params,
boolean forcePayToPubKey)
Gets the destination address from this script, if it's in the required form (see getPubKey).
|
Modifier and Type | Field and Description |
---|---|
protected NetworkParameters |
SPVBlockStore.params |
protected NetworkParameters |
DatabaseFullPrunedBlockStore.params |
Modifier and Type | Method and Description |
---|---|
NetworkParameters |
SPVBlockStore.getParams() |
NetworkParameters |
MemoryFullPrunedBlockStore.getParams() |
NetworkParameters |
LevelDBFullPrunedBlockStore.getParams() |
NetworkParameters |
LevelDBBlockStore.getParams() |
NetworkParameters |
BlockStore.getParams()
Get the
NetworkParameters of this store. |
NetworkParameters |
DatabaseFullPrunedBlockStore.getParams() |
NetworkParameters |
MemoryBlockStore.getParams() |
Constructor and Description |
---|
DatabaseFullPrunedBlockStore(NetworkParameters params,
String connectionURL,
int fullStoreDepth,
String username,
String password,
String schemaName)
Create a new DatabaseFullPrunedBlockStore, using the full connection URL instead of a hostname and password,
and optionally allowing a schema to be specified.
|
H2FullPrunedBlockStore(NetworkParameters params,
String dbName,
int fullStoreDepth)
Creates a new H2FullPrunedBlockStore
|
H2FullPrunedBlockStore(NetworkParameters params,
String dbName,
int fullStoreDepth,
int cacheSize)
Creates a new H2FullPrunedBlockStore with the given cache size
|
H2FullPrunedBlockStore(NetworkParameters params,
String dbName,
String username,
String password,
int fullStoreDepth)
Creates a new H2FullPrunedBlockStore, with given credentials for H2 database
|
LevelDBFullPrunedBlockStore(NetworkParameters params,
String filename,
int blockCount) |
LevelDBFullPrunedBlockStore(NetworkParameters params,
String filename,
int blockCount,
long leveldbReadCache,
int leveldbWriteCache,
int openOutCache,
boolean instrument,
int exitBlock) |
MemoryBlockStore(NetworkParameters params) |
MemoryFullPrunedBlockStore(NetworkParameters params,
int fullStoreDepth)
Set up the MemoryFullPrunedBlockStore
|
MySQLFullPrunedBlockStore(NetworkParameters params,
int fullStoreDepth,
String hostname,
String dbName,
String username,
String password)
Creates a new MySQLFullPrunedBlockStore.
|
PostgresFullPrunedBlockStore(NetworkParameters params,
int fullStoreDepth,
String hostname,
String dbName,
String username,
String password)
Creates a new PostgresFullPrunedBlockStore.
|
PostgresFullPrunedBlockStore(NetworkParameters params,
int fullStoreDepth,
String hostname,
String dbName,
String username,
String password,
String schemaName)
Create a new PostgresFullPrunedBlockStore, storing the tables in the schema specified.
|
SPVBlockStore(NetworkParameters params,
File file)
Creates and initializes an SPV block store.
|
Modifier and Type | Method and Description |
---|---|
static String |
BitcoinURI.convertToBitcoinURI(NetworkParameters params,
String address,
Coin amount,
String label,
String message)
Simple Bitcoin URI builder using known good fields.
|
Constructor and Description |
---|
BitcoinURI(NetworkParameters params,
String input)
Constructs a new object by trying to parse the input as a valid Bitcoin URI.
|
Constructor and Description |
---|
BlockFileLoader(NetworkParameters params,
List<File> files) |
VersionTally(NetworkParameters params) |
Modifier and Type | Field and Description |
---|---|
protected NetworkParameters |
Wallet.params |
Modifier and Type | Method and Description |
---|---|
NetworkParameters |
Wallet.getNetworkParameters() |
NetworkParameters |
Wallet.getParams()
Returns the parameters this wallet was created with.
|
Modifier and Type | Method and Description |
---|---|
Wallet |
WalletProtobufSerializer.WalletFactory.create(NetworkParameters params,
KeyChainGroup keyChainGroup) |
protected void |
MarriedKeyChain.formatAddresses(boolean includePrivateKeys,
NetworkParameters params,
StringBuilder builder2) |
protected void |
DeterministicKeyChain.formatAddresses(boolean includePrivateKeys,
NetworkParameters params,
StringBuilder builder2) |
static Wallet |
Wallet.fromKeys(NetworkParameters params,
List<ECKey> keys)
Creates a wallet containing a given set of keys.
|
static KeyChainGroup |
KeyChainGroup.fromProtobufEncrypted(NetworkParameters params,
List<Protos.Key> keys,
KeyCrypter crypter,
KeyChainFactory factory) |
static KeyChainGroup |
KeyChainGroup.fromProtobufUnencrypted(NetworkParameters params,
List<Protos.Key> keys,
KeyChainFactory factory) |
static Wallet |
Wallet.fromSeed(NetworkParameters params,
DeterministicSeed seed) |
static Wallet |
Wallet.fromWatchingKey(NetworkParameters params,
DeterministicKey watchKey)
Creates a wallet that tracks payments to and from the HD key hierarchy rooted by the given watching key.
|
static Wallet |
Wallet.fromWatchingKeyB58(NetworkParameters params,
String watchKeyB58,
long creationTimeSeconds)
Creates a wallet that tracks payments to and from the HD key hierarchy rooted by the given watching key.
|
Wallet |
WalletProtobufSerializer.readWallet(NetworkParameters params,
WalletExtension[] extensions,
Protos.Wallet walletProto)
Loads wallet data from the given protocol buffer and inserts it into the given Wallet object.
|
Wallet |
WalletProtobufSerializer.readWallet(NetworkParameters params,
WalletExtension[] extensions,
Protos.Wallet walletProto,
boolean forceReset)
Loads wallet data from the given protocol buffer and inserts it into the given Wallet object.
|
static SendRequest |
SendRequest.to(NetworkParameters params,
ECKey destination,
Coin value)
Creates a new SendRequest to the given pubkey for the given value.
|
static SendRequest |
SendRequest.toCLTVPaymentChannel(NetworkParameters params,
BigInteger time,
ECKey from,
ECKey to,
Coin value) |
static SendRequest |
SendRequest.toCLTVPaymentChannel(NetworkParameters params,
Date releaseTime,
ECKey from,
ECKey to,
Coin value) |
static SendRequest |
SendRequest.toCLTVPaymentChannel(NetworkParameters params,
int releaseBlock,
ECKey from,
ECKey to,
Coin value) |
String |
DeterministicKeyChain.toString(boolean includePrivateKeys,
NetworkParameters params) |
Constructor and Description |
---|
KeyChainGroup(NetworkParameters params)
Creates a keychain group with no basic chain, and a single, lazily created HD chain.
|
KeyChainGroup(NetworkParameters params,
DeterministicKey watchKey)
Creates a keychain group with no basic chain, and an HD chain that is watching the given watching key.
|
KeyChainGroup(NetworkParameters params,
DeterministicSeed seed)
Creates a keychain group with no basic chain, and an HD chain initialized from the given seed.
|
Wallet(NetworkParameters params)
Creates a new, empty wallet with a randomly chosen seed and no transactions.
|
Wallet(NetworkParameters params,
KeyChainGroup keyChainGroup) |
Copyright © 2016. All rights reserved.