org.bitcoins.core.protocol.transaction
The inputs for this transaction
The inputs for this transaction
The locktime for this transaction
The locktime for this transaction
The outputs for this transaction
The outputs for this transaction
The version number for this transaction
The version number for this transaction
Base transaction size is the size of the transaction serialised with the witness data stripped https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#Transaction_size_calculations
Base transaction size is the size of the transaction serialised with the witness data stripped https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#Transaction_size_calculations
The size of the NetworkElement in bytes.
The size of the NetworkElement in bytes.
The byte representation of the NetworkElement
The byte representation of the NetworkElement
The byte representation of the NetworkElement in little endian
The byte representation of the NetworkElement in little endian
The hexadecimal representation of the NetworkElement
The hexadecimal representation of the NetworkElement
The hexadecimal representation of the NetworkElement in little endian
The hexadecimal representation of the NetworkElement in little endian
Determines if this transaction is a coinbase transaction.
Determines if this transaction is a coinbase transaction.
The sha256(sha256(tx))
of this transaction,
Note that this is the little endian encoding of the hash, NOT the big endian encoding shown in block
explorers.
The sha256(sha256(tx))
of this transaction,
Note that this is the little endian encoding of the hash, NOT the big endian encoding shown in block
explorers. See
this link
for more info
This is the BIG ENDIAN encoding for the txid.
This is the BIG ENDIAN encoding for the txid. This is commonly used for RPC interfaces and block explorers, this encoding is NOT used at the protocol level For more info see: https://bitcoin.stackexchange.com/questions/2063/why-does-the-bitcoin-protocol-use-the-little-endian-notation
Updates the input at the given index and returns the new transaction with that input updated
Updates the input at the given index and returns the new transaction with that input updated
The transaction's virtual size https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#Transaction_size_calculations
The transaction's virtual size https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#Transaction_size_calculations
This is used to indicate how 'expensive' the transction is on the blockchain.
This is used to indicate how 'expensive' the transction is on the blockchain. This use to be a simple calculation before segwit (BIP141). Each byte in the transaction counted as 4 'weight' units. Now with segwit, the TransactionWitness is counted as 1 weight unit per byte, while other parts of the transaction (outputs, inputs, locktime etc) count as 4 weight units. As we add more witness versions, this may be subject to change. BIP 141 https://github.com/bitcoin/bitcoin/blob/5961b23898ee7c0af2626c46d5d70e80136578d3/src/consensus/validation.h#L96