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.core.listeners | |
org.bitcoinj.jni |
Modifier and Type | Class and Description |
---|---|
class |
AddressMessage
Represents an "addr" message on the P2P network, which contains broadcast IP addresses of other peers.
|
class |
AlertMessage
Alerts are signed messages that are broadcast on the peer-to-peer network if they match a hard-coded signing key.
|
class |
Block
A block is a group of transactions, and is one of the fundamental data structures of the Bitcoin system.
|
class |
BloomFilter
A Bloom filter is a probabilistic data structure which can be sent to another client so that it can avoid
sending us transactions that aren't relevant to our set of keys.
|
class |
ChildMessage
Represents a Message type that can be contained within another Message.
|
class |
EmptyMessage
Parent class for header only messages that don't have a payload.
|
class |
FilteredBlock
A FilteredBlock is used to relay a block with its transactions filtered using a
BloomFilter . |
class |
GetAddrMessage
Represents the "getaddr" P2P protocol message, which requests network
AddressMessage s from a peer. |
class |
GetBlocksMessage
Represents the "getblocks" P2P network message, which requests the hashes of the parts of the block chain we're
missing.
|
class |
GetDataMessage
Represents the "getdata" P2P network message, which requests the contents of blocks or transactions given their
hashes.
|
class |
GetHeadersMessage
The "getheaders" command is structurally identical to "getblocks", but has different meaning.
|
class |
GetUTXOsMessage
This command is supported only by Bitcoin XT nodes, which
advertise themselves using the second service bit flag.
|
class |
HeadersMessage
A protocol message that contains a repeated series of block headers, sent in response to the "getheaders" command.
|
class |
InventoryMessage
Represents the "inv" P2P network message.
|
class |
ListMessage
Abstract superclass of classes with list based payload, ie InventoryMessage and GetDataMessage.
|
class |
MemoryPoolMessage
The "mempool" message asks a remote peer to announce all transactions in its memory pool, possibly restricted by
any Bloom filter set on the connection.
|
class |
NotFoundMessage
Sent by a peer when a getdata request doesn't find the requested data in the mempool.
|
class |
PartialMerkleTree
A data structure that contains proofs of block inclusion for one or more transactions, in an efficient manner.
|
class |
PeerAddress
A PeerAddress holds an IP address and port number representing the network location of
a peer in the Bitcoin P2P network.
|
class |
Ping
Instances of this class are not safe for use by multiple threads.
|
class |
Pong
Instances of this class are not safe for use by multiple threads.
|
class |
RejectMessage
A message sent by nodes when a message we sent was rejected (ie a transaction had too little fee/was invalid/etc).
|
class |
Transaction
A transaction represents the movement of coins from some addresses to some other addresses.
|
class |
TransactionInput
A transfer of coins from one address to another creates a transaction in which the outputs
can be claimed by the recipient in the input of another transaction.
|
class |
TransactionOutPoint
This message is a reference or pointer to an output of a different transaction.
|
class |
TransactionOutput
A TransactionOutput message contains a scriptPubKey that controls who is able to spend its value.
|
class |
UnknownMessage
Instances of this class are not safe for use by multiple threads.
|
class |
UTXOsMessage
Message representing a list of unspent transaction outputs ("utxos"), returned in response to sending a
GetUTXOsMessage ("getutxos"). |
class |
VersionAck
The verack message, sent by a client accepting the version message they
received from their peer.
|
class |
VersionMessage
A VersionMessage holds information exchanged during connection setup with another peer.
|
Modifier and Type | Field and Description |
---|---|
protected Message |
ChildMessage.parent |
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.
|
abstract Message |
MessageSerializer.deserializePayload(BitcoinSerializer.BitcoinPacketHeader header,
ByteBuffer in)
Deserialize payload only.
|
Message |
BitcoinSerializer.deserializePayload(BitcoinSerializer.BitcoinPacketHeader header,
ByteBuffer in)
Deserialize payload only.
|
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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
PeerSocketHandler.processMessage(Message m)
Called every time a message is received from the network
|
protected void |
Peer.processMessage(Message m) |
void |
PeerSocketHandler.sendMessage(Message message)
Sends the given message to the peer.
|
abstract void |
MessageSerializer.serialize(Message message,
OutputStream out)
Writes message to to the output stream.
|
void |
BitcoinSerializer.serialize(Message message,
OutputStream out)
Writes message to to the output stream.
|
void |
ChildMessage.setParent(Message parent) |
Constructor and Description |
---|
Block(NetworkParameters params,
byte[] payloadBytes,
int offset,
Message parent,
MessageSerializer serializer,
int length)
Construct a block object from the Bitcoin wire format.
|
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) |
PeerAddress(NetworkParameters params,
byte[] payload,
int offset,
int protocolVersion,
Message parent,
MessageSerializer serializer)
Construct a peer address from a serialized payload.
|
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.
|
TransactionOutPoint(NetworkParameters params,
byte[] payload,
int offset,
Message parent,
MessageSerializer serializer)
Deserializes the message.
|
Modifier and Type | Method and Description |
---|---|
Message |
PreMessageReceivedEventListener.onPreMessageReceived(Peer peer,
Message m)
Called when a message is received by a peer, before the message is processed.
|
Message |
AbstractPeerDataEventListener.onPreMessageReceived(Peer peer,
Message m)
Deprecated.
|
Message |
AbstractPeerEventListener.onPreMessageReceived(Peer peer,
Message m)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
List<Message> |
AbstractPeerDataEventListener.getData(Peer peer,
GetDataMessage m)
Deprecated.
|
List<Message> |
AbstractPeerEventListener.getData(Peer peer,
GetDataMessage m)
Deprecated.
|
List<Message> |
GetDataEventListener.getData(Peer peer,
GetDataMessage m)
Called when a peer receives a getdata message, usually in response to an "inv" being broadcast.
|
Modifier and Type | Method and Description |
---|---|
Message |
PreMessageReceivedEventListener.onPreMessageReceived(Peer peer,
Message m)
Called when a message is received by a peer, before the message is processed.
|
Message |
AbstractPeerDataEventListener.onPreMessageReceived(Peer peer,
Message m)
Deprecated.
|
Message |
AbstractPeerEventListener.onPreMessageReceived(Peer peer,
Message m)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Message |
NativePeerEventListener.onPreMessageReceived(Peer peer,
Message m) |
Modifier and Type | Method and Description |
---|---|
List<Message> |
NativePeerEventListener.getData(Peer peer,
GetDataMessage m) |
Modifier and Type | Method and Description |
---|---|
Message |
NativePeerEventListener.onPreMessageReceived(Peer peer,
Message m) |
Copyright © 2016. All rights reserved.