Serialized Form


Package com.google.bitcoin.core

Class com.google.bitcoin.core.AddressFormatException extends java.lang.Exception implements Serializable

Class com.google.bitcoin.core.AddressMessage extends Message implements Serializable

serialVersionUID: 8058283864924679460L

Serialized Fields

addresses

java.util.List<E> addresses

Class com.google.bitcoin.core.Block extends Message implements Serializable

serialVersionUID: 2738848929966035281L

Serialized Fields

version

long version

prevBlockHash

byte[] prevBlockHash

merkleRoot

byte[] merkleRoot

time

long time

difficultyTarget

long difficultyTarget

nonce

long nonce

transactions

java.util.List<E> transactions
If null, it means this object holds only the headers.


hash

byte[] hash
Stores the hash of the block. If null, getHash() will recalculate it.


prevBlock

Block prevBlock

Class com.google.bitcoin.core.BlockStoreException extends java.lang.Exception implements Serializable

Class com.google.bitcoin.core.ECKey extends java.lang.Object implements Serializable

serialVersionUID: -728224901792295832L

Serialized Fields

priv

java.math.BigInteger priv

pub

byte[] pub

Class com.google.bitcoin.core.GetBlocksMessage extends Message implements Serializable

serialVersionUID: 3479412877853645644L

Serialized Fields

locator

java.util.List<E> locator

stopHash

byte[] stopHash

Class com.google.bitcoin.core.GetDataMessage extends Message implements Serializable

serialVersionUID: 2754681589501709887L

Class com.google.bitcoin.core.InventoryMessage extends Message implements Serializable

serialVersionUID: -7050246551646107066L

Serialized Fields

items

java.util.List<E> items

Class com.google.bitcoin.core.Message extends java.lang.Object implements Serializable

serialVersionUID: -3561053461717079135L

Serialized Fields

params

NetworkParameters params

Class com.google.bitcoin.core.NetworkParameters extends java.lang.Object implements Serializable

serialVersionUID: 2579833727976661964L

Serialized Fields

genesisBlock

Block genesisBlock
Genesis block for this chain.

The first block in every chain is a well known constant shared between all BitCoin implemenetations. For a block to be valid, it must be eventually possible to work backwards to the genesis block by following the prevBlockHash pointers in the block headers.

The genesis blocks for both test and prod networks contain the timestamp of when they were created, and a message in the coinbase transaction. It says, "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks".


proofOfWorkLimit

java.math.BigInteger proofOfWorkLimit
What the easiest allowable proof of work should be.


port

int port
Default TCP port on which to connect to nodes.


packetMagic

long packetMagic
The header bytes that identify the start of a packet on this network.


addressHeader

byte addressHeader
First byte of a base58 encoded address.


interval

int interval
How many blocks pass between difficulty adjustment periods. BitCoin standardises this to be 2015.


targetTimespan

int targetTimespan
How much time in seconds is supposed to pass between "interval" blocks. If the actual elapsed time is significantly different from this value, the network difficulty formula will produce a different value. Both test and production BitCoin networks use 2 weeks (1209600 seconds).

Class com.google.bitcoin.core.PeerAddress extends Message implements Serializable

serialVersionUID: 7501293709324197411L

Serialized Fields

addr

java.net.InetAddress addr

port

int port

services

java.math.BigInteger services

time

long time

Class com.google.bitcoin.core.ProtocolException extends java.lang.Exception implements Serializable

Class com.google.bitcoin.core.ScriptException extends java.lang.Exception implements Serializable

Class com.google.bitcoin.core.Transaction extends Message implements Serializable

serialVersionUID: -8567546957352643140L

Serialized Fields

version

long version

inputs

java.util.ArrayList<E> inputs

outputs

java.util.ArrayList<E> outputs

lockTime

long lockTime

Class com.google.bitcoin.core.TransactionInput extends Message implements Serializable

serialVersionUID: -7687665228438202968L

Serialized Fields

sequence

long sequence

outpoint

TransactionOutPoint outpoint

scriptBytes

byte[] scriptBytes

Class com.google.bitcoin.core.TransactionOutPoint extends Message implements Serializable

serialVersionUID: -6320880638344662579L

Serialized Fields

hash

byte[] hash
Hash of the transaction to which we refer.


index

long index
Which output of that transaction we are talking about.


fromTx

Transaction fromTx

Class com.google.bitcoin.core.TransactionOutput extends Message implements Serializable

serialVersionUID: -590332479859256824L

Serialized Fields

value

java.math.BigInteger value

scriptBytes

byte[] scriptBytes

isSpent

boolean isSpent

parentTransaction

Transaction parentTransaction

Class com.google.bitcoin.core.UnknownMessage extends Message implements Serializable

serialVersionUID: 3614705938207918775L

Serialized Fields

name

java.lang.String name

Class com.google.bitcoin.core.VerificationException extends java.lang.Exception implements Serializable

Class com.google.bitcoin.core.VersionMessage extends Message implements Serializable

serialVersionUID: 7313594258967483180L

Serialized Fields

clientVersion

int clientVersion
The version number of the protocol spoken.


localServices

long localServices
Flags defining what is supported. Right now VersionMessage.NODE_NETWORK is the only flag defined.


time

long time
What the other side believes the current time to be, in seconds.


myAddr

PeerAddress myAddr
What the other side believes the address of this program is. Not used.


theirAddr

PeerAddress theirAddr
What the other side believes their own address is. Not used.


subVer

java.lang.String subVer
An additional string that today the official client sets to the empty string. We treat it as something like an HTTP User-Agent header.


bestHeight

long bestHeight
How many blocks are in the chain, according to the other side.

Class com.google.bitcoin.core.Wallet extends java.lang.Object implements Serializable

serialVersionUID: -4501424466753895784L

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException
Serialized Fields

unspent

java.util.ArrayList<E> unspent
A list of transactions with outputs we can spend. Note that some of these transactions may be partially spent, that is, they have outputs some of which are redeemed and others which aren't already. The spentness of each output is tracked in the TransactionOutput object. The value of all unspent outputs is the balance of the wallet.


fullySpent

java.util.LinkedList<E> fullySpent
When all the outputs of a transaction are spent, it gets put here. These transactions aren't useful for anything except record keeping and presentation to the user.


keychain

java.util.ArrayList<E> keychain
A list of public/private EC keys owned by this user.


params

NetworkParameters params