| Package | Description | 
|---|---|
| org.bitcoinj.core | The core package contains classes for network messages like  BlockandTransaction, peer connectivity viaPeerGroup,
 and block chain management. | 
| org.bitcoinj.core.listeners | |
| org.bitcoinj.jni | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AddressMessageRepresents an "addr" message on the P2P network, which contains broadcast IP addresses of other peers. | 
| class  | AlertMessageAlerts are signed messages that are broadcast on the peer-to-peer network if they match a hard-coded signing key. | 
| class  | BlockA block is a group of transactions, and is one of the fundamental data structures of the Bitcoin system. | 
| class  | BloomFilterA 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  | ChildMessageRepresents a Message type that can be contained within another Message. | 
| class  | EmptyMessageParent class for header only messages that don't have a payload. | 
| class  | FilteredBlockA FilteredBlock is used to relay a block with its transactions filtered using a  BloomFilter. | 
| class  | GetAddrMessageRepresents the "getaddr" P2P protocol message, which requests network  AddressMessages from a peer. | 
| class  | GetBlocksMessageRepresents the "getblocks" P2P network message, which requests the hashes of the parts of the block chain we're
 missing. | 
| class  | GetDataMessageRepresents the "getdata" P2P network message, which requests the contents of blocks or transactions given their
 hashes. | 
| class  | GetHeadersMessageThe "getheaders" command is structurally identical to "getblocks", but has different meaning. | 
| class  | GetUTXOsMessageThis command is supported only by Bitcoin XT nodes, which
 advertise themselves using the second service bit flag. | 
| class  | HeadersMessageA protocol message that contains a repeated series of block headers, sent in response to the "getheaders" command. | 
| class  | InventoryMessageRepresents the "inv" P2P network message. | 
| class  | ListMessageAbstract superclass of classes with list based payload, ie InventoryMessage and GetDataMessage. | 
| class  | MemoryPoolMessageThe "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  | NotFoundMessageSent by a peer when a getdata request doesn't find the requested data in the mempool. | 
| class  | PartialMerkleTreeA data structure that contains proofs of block inclusion for one or more transactions, in an efficient manner. | 
| class  | PeerAddressA PeerAddress holds an IP address and port number representing the network location of
 a peer in the Bitcoin P2P network. | 
| class  | PingInstances of this class are not safe for use by multiple threads. | 
| class  | PongInstances of this class are not safe for use by multiple threads. | 
| class  | RejectMessageA message sent by nodes when a message we sent was rejected (ie a transaction had too little fee/was invalid/etc). | 
| class  | TransactionA transaction represents the movement of coins from some addresses to some other addresses. | 
| class  | TransactionInputA 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  | TransactionOutPointThis message is a reference or pointer to an output of a different transaction. | 
| class  | TransactionOutputA TransactionOutput message contains a scriptPubKey that controls who is able to spend its value. | 
| class  | UnknownMessageInstances of this class are not safe for use by multiple threads. | 
| class  | UTXOsMessageMessage representing a list of unspent transaction outputs ("utxos"), returned in response to sending a
  GetUTXOsMessage("getutxos"). | 
| class  | VersionAckThe verack message, sent by a client accepting the version message they
 received from their peer. | 
| class  | VersionMessageA 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 | AbstractPeerEventListener. onPreMessageReceived(Peer peer,
                    Message m)Deprecated.  | 
| 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.  | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
| List<Message> | AbstractPeerDataEventListener. getData(Peer peer,
       GetDataMessage m)Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| Message | AbstractPeerEventListener. onPreMessageReceived(Peer peer,
                    Message m)Deprecated.  | 
| 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.  | 
| 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 © 2018. All rights reserved.