Package | Description |
---|---|
org.bitcoinj.core |
The core package contains classes for network messages like
Block and
Transaction , peer connectivity via PeerGroup ,
block chain management and the Wallet class. |
Modifier and Type | Method and Description |
---|---|
Message |
BitcoinSerializer.deserialize(ByteBuffer in)
Reads a message from the given ByteBuffer and returns it.
|
static StoredBlock |
StoredBlock.deserializeCompact(NetworkParameters params,
ByteBuffer buffer)
De-serializes the stored block from a custom packed format.
|
BitcoinSerializer.BitcoinPacketHeader |
BitcoinSerializer.deserializeHeader(ByteBuffer in)
Deserializes only the header in case packet meta data is needed before decoding
the payload.
|
Message |
BitcoinSerializer.deserializePayload(BitcoinSerializer.BitcoinPacketHeader header,
ByteBuffer in)
Deserialize payload only.
|
void |
Message.ensureParsed()
In lazy parsing mode access to getters and setters may throw an unchecked LazyParseException.
|
void |
EmptyMessage.ensureParsed() |
void |
Block.ensureParsed()
In lazy parsing mode access to getters and setters may throw an unchecked LazyParseException.
|
void |
Block.ensureParsedHeader()
In lazy parsing mode access to getters and setters may throw an unchecked LazyParseException.
|
void |
Block.ensureParsedTransactions()
In lazy parsing mode access to getters and setters may throw an unchecked LazyParseException.
|
void |
VersionMessage.parse() |
void |
RejectMessage.parse() |
protected void |
PeerAddress.parse() |
void |
ListMessage.parse() |
protected void |
GetUTXOsMessage.parse() |
void |
GetBlocksMessage.parse() |
protected void |
VersionMessage.parseLite() |
protected void |
UTXOsMessage.parseLite() |
protected void |
TransactionOutput.parseLite() |
protected void |
TransactionOutPoint.parseLite() |
protected void |
TransactionInput.parseLite() |
protected void |
Transaction.parseLite() |
protected void |
RejectMessage.parseLite() |
protected abstract void |
Message.parseLite()
Perform the most minimal parse possible to calculate the length of the message payload.
|
protected void |
MemoryPoolMessage.parseLite() |
protected void |
ListMessage.parseLite() |
protected void |
HeadersMessage.parseLite() |
protected void |
GetUTXOsMessage.parseLite() |
protected void |
GetBlocksMessage.parseLite() |
protected void |
FilteredBlock.parseLite() |
protected void |
EmptyMessage.parseLite() |
protected void |
BloomFilter.parseLite() |
protected void |
Block.parseLite() |
protected void |
AlertMessage.parseLite() |
protected void |
AddressMessage.parseLite() |
ListenableFuture<Long> |
Peer.ping()
Sends the peer a ping message and returns a future that will be invoked when the pong is received back.
|
protected ListenableFuture<Long> |
Peer.ping(long nonce) |
Constructor and Description |
---|
AlertMessage(NetworkParameters params,
byte[] payloadBytes) |
BitcoinPacketHeader(ByteBuffer in) |
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.
|
BloomFilter(NetworkParameters params,
byte[] payloadBytes)
Construct a BloomFilter by deserializing payloadBytes
|
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,
boolean parseLazy,
boolean parseRetain,
int length) |
ChildMessage(NetworkParameters params,
byte[] payload,
int offset,
Message parent,
boolean parseLazy,
boolean parseRetain,
int length) |
EmptyMessage(NetworkParameters params,
byte[] payload,
int offset) |
FilteredBlock(NetworkParameters params,
byte[] payloadBytes) |
GetBlocksMessage(NetworkParameters params,
byte[] payload) |
GetDataMessage(NetworkParameters params,
byte[] payloadBytes) |
GetDataMessage(NetworkParameters params,
byte[] payload,
boolean parseLazy,
boolean parseRetain,
int length)
Deserializes a 'getdata' message.
|
GetHeadersMessage(NetworkParameters params,
byte[] payload) |
HeadersMessage(NetworkParameters params,
Block... headers) |
HeadersMessage(NetworkParameters params,
byte[] payload) |
InventoryMessage(NetworkParameters params,
byte[] bytes) |
InventoryMessage(NetworkParameters params,
byte[] payload,
boolean parseLazy,
boolean parseRetain,
int length)
Deserializes an 'inv' message.
|
ListMessage(NetworkParameters params,
byte[] bytes) |
ListMessage(NetworkParameters params,
byte[] payload,
boolean parseLazy,
boolean parseRetain,
int length) |
NotFoundMessage(NetworkParameters params,
byte[] payloadBytes) |
PartialMerkleTree(NetworkParameters params,
byte[] payloadBytes,
int offset) |
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,
boolean parseLazy,
boolean parseRetain)
Construct a peer address from a serialized payload.
|
Ping(NetworkParameters params,
byte[] payloadBytes) |
Pong(NetworkParameters params,
byte[] payloadBytes) |
RejectMessage(NetworkParameters params,
byte[] payload) |
RejectMessage(NetworkParameters params,
byte[] payload,
boolean parseLazy,
boolean parseRetain,
int length) |
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,
boolean parseLazy,
boolean parseRetain,
int length)
Creates a transaction by reading payload starting from offset bytes in.
|
Transaction(NetworkParameters params,
byte[] payload,
Message parent,
boolean parseLazy,
boolean parseRetain,
int length)
Creates a transaction by reading payload starting from offset bytes in.
|
TransactionInput(NetworkParameters params,
Transaction parentTransaction,
byte[] payload,
int offset)
Deserializes an input message.
|
TransactionInput(NetworkParameters params,
Transaction parentTransaction,
byte[] payload,
int offset,
boolean parseLazy,
boolean parseRetain)
Deserializes an input message.
|
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.
|
TransactionOutput(NetworkParameters params,
Transaction parent,
byte[] payload,
int offset)
Deserializes a transaction output message.
|
TransactionOutput(NetworkParameters params,
Transaction parent,
byte[] payload,
int offset,
boolean parseLazy,
boolean parseRetain)
Deserializes a transaction output message.
|
UnknownMessage(NetworkParameters params,
String name,
byte[] payloadBytes) |
VersionMessage(NetworkParameters params,
byte[] payload) |
Copyright © 2014. All rights reserved.