Modifier and Type | Field and Description |
---|---|
protected NetworkParameters |
Message.params |
protected NetworkParameters |
CheckpointManager.params |
protected NetworkParameters |
AbstractBlockChain.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 |
Wallet.getNetworkParameters() |
NetworkParameters |
Address.getParameters()
Examines the version byte of the address and attempts to find a matching NetworkParameters.
|
static NetworkParameters |
Address.getParametersFromAddress(String address)
Given an address, examines the version byte and attempts to find a matching NetworkParameters.
|
NetworkParameters |
Wallet.getParams()
Returns the parameters this wallet was created with.
|
NetworkParameters |
Message.getParams()
Network parameters this message was created with.
|
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 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.
|
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
|
DumpedPrivateKey |
ECKey.getPrivateKeyEncoded(NetworkParameters params)
Exports the private key in the form used by the Satoshi client "dumpprivkey" and "importprivkey" commands.
|
static PeerAddress |
PeerAddress.localhost(NetworkParameters params) |
static Wallet.SendRequest |
Wallet.SendRequest.to(NetworkParameters params,
ECKey destination,
BigInteger value)
Creates a new SendRequest to the given pubkey for the given value.
|
Address |
ECKey.toAddress(NetworkParameters params)
Returns the address that corresponds to the public part of this ECKey.
|
Constructor and Description |
---|
AbstractBlockChain(NetworkParameters params,
List<BlockChainListener> listeners,
BlockStore blockStore)
Constructs a BlockChain connected to the given list of listeners (eg, wallets) and a store.
|
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)
Construct an address from parameters and the standard "human readable" form.
|
AlertMessage(NetworkParameters params,
byte[] payloadBytes) |
BitcoinSerializer(NetworkParameters params)
Constructs a BitcoinSerializer with the given behavior.
|
BitcoinSerializer(NetworkParameters params,
boolean parseLazy,
boolean parseRetain)
Constructs a BitcoinSerializer with the given behavior.
|
Block(NetworkParameters params,
byte[] payloadBytes)
Constructs a block object from the Bitcoin wire format.
|
Block(NetworkParameters params,
byte[] payloadBytes,
boolean parseLazy,
boolean parseRetain,
int length)
Contruct 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)
Constructs a BlockChain that has no wallet at all.
|
BlockChain(NetworkParameters params,
List<BlockChainListener> wallets,
BlockStore blockStore)
Constructs a BlockChain connected to the given list of listeners and a store.
|
BlockChain(NetworkParameters params,
Wallet wallet,
BlockStore blockStore)
Constructs a BlockChain connected to the given wallet and store.
|
BloomFilter(NetworkParameters params,
byte[] payloadBytes)
Construct a BloomFilter by deserializing payloadBytes
|
CheckpointManager(NetworkParameters params,
InputStream inputStream) |
ChildMessage(NetworkParameters params) |
ChildMessage(NetworkParameters params,
byte[] msg,
int offset) |
ChildMessage(NetworkParameters params,
byte[] msg,
int offset,
int protocolVersion) |
ChildMessage(NetworkParameters params,
byte[] msg,
int offset,
int protocolVersion,
Message parent,
boolean parseLazy,
boolean parseRetain,
int length) |
ChildMessage(NetworkParameters params,
byte[] msg,
int offset,
Message parent,
boolean parseLazy,
boolean parseRetain,
int length) |
DumpedPrivateKey(NetworkParameters params,
String encoded)
Parses the given private key as created by the "dumpprivkey" Bitcoin C++ RPC.
|
EmptyMessage(NetworkParameters params) |
EmptyMessage(NetworkParameters params,
byte[] msg,
int offset) |
FilteredBlock(NetworkParameters params,
byte[] payloadBytes) |
FullPrunedBlockChain(NetworkParameters params,
FullPrunedBlockStore blockStore)
Constructs a BlockChain that has no wallet at all.
|
FullPrunedBlockChain(NetworkParameters params,
List<BlockChainListener> listeners,
FullPrunedBlockStore blockStore)
Constructs a BlockChain connected to the given list of wallets and a store.
|
FullPrunedBlockChain(NetworkParameters params,
Wallet wallet,
FullPrunedBlockStore blockStore)
Constructs a BlockChain connected to the given wallet and store.
|
GetAddrMessage(NetworkParameters params) |
GetBlocksMessage(NetworkParameters params,
byte[] msg) |
GetBlocksMessage(NetworkParameters params,
List<Sha256Hash> locator,
Sha256Hash stopHash) |
GetDataMessage(NetworkParameters params) |
GetDataMessage(NetworkParameters params,
byte[] payloadBytes) |
GetDataMessage(NetworkParameters params,
byte[] msg,
boolean parseLazy,
boolean parseRetain,
int length)
Deserializes a 'getdata' message.
|
GetHeadersMessage(NetworkParameters params,
byte[] msg) |
GetHeadersMessage(NetworkParameters params,
List<Sha256Hash> locator,
Sha256Hash stopHash) |
HeadersMessage(NetworkParameters params,
Block... headers) |
HeadersMessage(NetworkParameters params,
byte[] payload) |
InventoryMessage(NetworkParameters params) |
InventoryMessage(NetworkParameters params,
byte[] bytes) |
InventoryMessage(NetworkParameters params,
byte[] msg,
boolean parseLazy,
boolean parseRetain,
int length)
Deserializes an 'inv' message.
|
ListMessage(NetworkParameters params) |
ListMessage(NetworkParameters params,
byte[] bytes) |
ListMessage(NetworkParameters params,
byte[] msg,
boolean parseLazy,
boolean parseRetain,
int length) |
NotFoundMessage(NetworkParameters params) |
NotFoundMessage(NetworkParameters params,
byte[] payloadBytes) |
NotFoundMessage(NetworkParameters params,
List<InventoryItem> items) |
PartialMerkleTree(NetworkParameters params,
byte[] payloadBytes,
int offset) |
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,
MemoryPool mempool)
Construct a peer that reads/writes from the given block chain and memory pool.
|
PeerAddress(NetworkParameters params,
byte[] payload,
int offset,
int protocolVersion)
Construct a peer address from a serialized payload.
|
PeerAddress(NetworkParameters params,
byte[] msg,
int offset,
int protocolVersion,
Message parent,
boolean parseLazy,
boolean parseRetain)
Construct a peer address from a serialized payload.
|
PeerGroup(NetworkParameters params)
Creates a PeerGroup with the given parameters.
|
PeerGroup(NetworkParameters params,
AbstractBlockChain chain)
Creates a PeerGroup for the given network and chain.
|
PeerGroup(NetworkParameters params,
AbstractBlockChain chain,
ClientConnectionManager connectionManager)
Creates a new PeerGroup allowing you to specify the
ClientConnectionManager which is used to create new
connections and keep track of existing ones. |
PeerSocketHandler(NetworkParameters params,
InetSocketAddress remoteIp) |
PeerSocketHandler(NetworkParameters params,
PeerAddress peerAddress) |
Ping(NetworkParameters params,
byte[] payloadBytes) |
Pong(NetworkParameters params,
byte[] payloadBytes) |
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[] msg,
int offset,
Message parent,
boolean parseLazy,
boolean parseRetain,
int length)
Creates a transaction by reading payload starting from offset bytes in.
|
Transaction(NetworkParameters params,
byte[] msg,
Message parent,
boolean parseLazy,
boolean parseRetain,
int length)
Creates a transaction by reading payload starting from offset bytes in.
|
Transaction(NetworkParameters params,
int version,
Sha256Hash hash) |
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,
byte[] payload,
int offset)
/**
Deserializes the message.
|
TransactionOutPoint(NetworkParameters params,
byte[] payload,
int offset,
Message parent,
boolean parseLazy,
boolean parseRetain)
Deserializes the message.
|
TransactionOutPoint(NetworkParameters params,
long index,
Sha256Hash hash) |
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.
|
UnknownMessage(NetworkParameters params,
String name,
byte[] payloadBytes) |
VersionAck(NetworkParameters params,
byte[] payload) |
VersionMessage(NetworkParameters params,
byte[] msg) |
VersionMessage(NetworkParameters params,
int newBestHeight)
Equivalent to VersionMessage(params, newBestHeight, true)
|
VersionMessage(NetworkParameters params,
int newBestHeight,
boolean relayTxesBeforeFilter) |
Wallet(NetworkParameters params)
Creates a new, empty wallet with no keys and no transactions.
|
Wallet(NetworkParameters params,
KeyCrypter keyCrypter)
Create a wallet with a keyCrypter to use in encrypting and decrypting keys.
|
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) |
Constructor and Description |
---|
DnsDiscovery(NetworkParameters netParams)
Supports finding peers through DNS A records.
|
DnsDiscovery(String[] hostNames,
NetworkParameters netParams)
Supports finding peers through DNS A records.
|
SeedPeers(NetworkParameters params) |
Modifier and Type | Class and Description |
---|---|
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 |
---|---|
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 | Field and Description |
---|---|
protected NetworkParameters |
SPVBlockStore.params |
Constructor and Description |
---|
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
|
MemoryBlockStore(NetworkParameters params) |
MemoryFullPrunedBlockStore(NetworkParameters params,
int fullStoreDepth)
Set up the MemoryFullPrunedBlockStore
|
PostgresFullPrunedBlockStore(NetworkParameters params,
int fullStoreDepth,
String hostname,
String dbName,
String username,
String password)
Creates a new PostgresFullPrunedBlockStore.
|
SPVBlockStore(NetworkParameters params,
File file)
Creates and initializes an SPV block store.
|
Constructor and Description |
---|
BitcoinURI(NetworkParameters params,
String input)
Constructs a new object by trying to parse the input as a valid Bitcoin URI.
|
Modifier and Type | Field and Description |
---|---|
protected static NetworkParameters |
TestWithWallet.params |
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.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
|
Constructor and Description |
---|
BlockFileLoader(NetworkParameters params,
List<File> files) |
Copyright © 2014. All rights reserved.