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. |
Modifier and Type | Method and Description |
---|---|
abstract Message |
MessageSerializer.deserialize(ByteBuffer in)
Reads a message from the given ByteBuffer and returns it.
|
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.
|
abstract BitcoinSerializer.BitcoinPacketHeader |
MessageSerializer.deserializeHeader(ByteBuffer in)
Deserializes only the header in case packet meta data is needed before decoding
the payload.
|
BitcoinSerializer.BitcoinPacketHeader |
BitcoinSerializer.deserializeHeader(ByteBuffer in)
Deserializes only the header in case packet meta data is needed before decoding
the payload.
|
abstract Message |
MessageSerializer.deserializePayload(BitcoinSerializer.BitcoinPacketHeader header,
ByteBuffer in)
Deserialize payload only.
|
Message |
BitcoinSerializer.deserializePayload(BitcoinSerializer.BitcoinPacketHeader header,
ByteBuffer in)
Deserialize payload only.
|
abstract AddressMessage |
MessageSerializer.makeAddressMessage(byte[] payloadBytes,
int length)
Make an address message from the payload.
|
AddressMessage |
BitcoinSerializer.makeAddressMessage(byte[] payloadBytes,
int length)
Make an address message from the payload.
|
abstract Message |
MessageSerializer.makeAlertMessage(byte[] payloadBytes)
Make an alert message from the payload.
|
Message |
BitcoinSerializer.makeAlertMessage(byte[] payloadBytes)
Make an alert message from the payload.
|
Block |
MessageSerializer.makeBlock(byte[] payloadBytes)
Make a block from the payload, using an offset of zero and the payload
length as block length.
|
Block |
MessageSerializer.makeBlock(byte[] payloadBytes,
int length)
Make a block from the payload, using an offset of zero and the provided
length as block length.
|
abstract Block |
MessageSerializer.makeBlock(byte[] payloadBytes,
int offset,
int length)
Make a block from the payload, using an offset of zero and the provided
length as block length.
|
Block |
BitcoinSerializer.makeBlock(byte[] payloadBytes,
int offset,
int length)
Make a block from the payload.
|
abstract Message |
MessageSerializer.makeBloomFilter(byte[] payloadBytes)
Make an filter message from the payload.
|
Message |
BitcoinSerializer.makeBloomFilter(byte[] payloadBytes)
Make an filter message from the payload.
|
abstract FilteredBlock |
MessageSerializer.makeFilteredBlock(byte[] payloadBytes)
Make a filtered block from the payload.
|
FilteredBlock |
BitcoinSerializer.makeFilteredBlock(byte[] payloadBytes)
Make a filtered block from the payload.
|
abstract InventoryMessage |
MessageSerializer.makeInventoryMessage(byte[] payloadBytes,
int length)
Make an inventory message from the payload.
|
InventoryMessage |
BitcoinSerializer.makeInventoryMessage(byte[] payloadBytes,
int length)
Make an inventory message from the payload.
|
Transaction |
MessageSerializer.makeTransaction(byte[] payloadBytes)
Make a transaction from the payload.
|
Transaction |
MessageSerializer.makeTransaction(byte[] payloadBytes,
int offset)
Make a transaction from the payload.
|
abstract Transaction |
MessageSerializer.makeTransaction(byte[] payloadBytes,
int offset,
int length,
byte[] hash)
Make a transaction from the payload.
|
Transaction |
BitcoinSerializer.makeTransaction(byte[] payloadBytes,
int offset,
int length,
byte[] hash)
Make a transaction from the payload.
|
protected void |
PeerAddress.parse() |
protected void |
TransactionInput.parse() |
protected void |
EmptyMessage.parse() |
protected void |
HeadersMessage.parse() |
protected void |
Pong.parse() |
protected void |
GetUTXOsMessage.parse() |
protected void |
Transaction.parse() |
protected void |
TransactionOutput.parse() |
protected void |
PartialMerkleTree.parse() |
protected abstract void |
Message.parse() |
protected void |
Ping.parse() |
protected void |
AddressMessage.parse() |
protected void |
TransactionOutPoint.parse() |
protected void |
BloomFilter.parse() |
protected void |
UTXOsMessage.parse() |
protected void |
VersionMessage.parse() |
protected void |
Block.parse() |
protected void |
GetBlocksMessage.parse() |
protected void |
MemoryPoolMessage.parse() |
protected void |
ListMessage.parse() |
protected void |
RejectMessage.parse() |
protected void |
AlertMessage.parse() |
protected void |
FilteredBlock.parse() |
protected void |
Block.parseTransactions(int transactionsOffset)
Parse transactions from the block.
|
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) |
protected void |
Peer.processHeaders(HeadersMessage m) |
protected byte[] |
Message.readByteArray() |
protected byte[] |
Message.readBytes(int length) |
protected Sha256Hash |
Message.readHash() |
protected long |
Message.readInt64() |
protected String |
Message.readStr() |
protected long |
Message.readUint32() |
protected BigInteger |
Message.readUint64() |
protected long |
Message.readVarInt() |
protected long |
Message.readVarInt(int offset) |
Constructor and Description |
---|
AlertMessage(NetworkParameters params,
byte[] payloadBytes) |
BitcoinPacketHeader(ByteBuffer in) |
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.
|
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,
MessageSerializer setSerializer,
int length) |
ChildMessage(NetworkParameters params,
byte[] payload,
int offset,
Message parent,
MessageSerializer setSerializer,
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,
MessageSerializer serializer,
int length)
Deserializes a 'getdata' message.
|
GetHeadersMessage(NetworkParameters params,
byte[] payload) |
HeadersMessage(NetworkParameters params,
Block... headers) |
HeadersMessage(NetworkParameters params,
byte[] payload) |
HeadersMessage(NetworkParameters params,
List<Block> headers) |
InventoryMessage(NetworkParameters params,
byte[] bytes) |
InventoryMessage(NetworkParameters params,
byte[] payload,
MessageSerializer serializer,
int length)
Deserializes an 'inv' message.
|
ListMessage(NetworkParameters params,
byte[] bytes) |
ListMessage(NetworkParameters params,
byte[] payload,
MessageSerializer serializer,
int length) |
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,
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,
MessageSerializer serializer)
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,
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,
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[] payload,
int offset)
Deserializes an input message.
|
TransactionInput(NetworkParameters params,
Transaction parentTransaction,
byte[] payload,
int offset,
MessageSerializer serializer)
Deserializes an input message.
|
TransactionOutPoint(NetworkParameters params,
byte[] payload,
int offset)
/**
Deserializes the message.
|
TransactionOutPoint(NetworkParameters params,
byte[] payload,
int offset,
Message parent,
MessageSerializer serializer)
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,
MessageSerializer serializer)
Deserializes a transaction output message.
|
UnknownMessage(NetworkParameters params,
String name,
byte[] payloadBytes) |
VersionMessage(NetworkParameters params,
byte[] payload) |
Copyright © 2016. All rights reserved.