Bch Transaction
Bitcoin transaction
Properties
Which blockchain is this transaction for
inputs to this transaction
Total quantity of satoshis spent (input into this transaction), including grouped satoshis
Return the outpoints in this transaction
outputs of this transaction
Total quantity of satoshis sent (output from this transaction), including grouped satoshis
Functions
Add an output to this transaction (at the end)
Add an input to this transaction (at the end)
Append an input to this transaction (at the end).
Return the sighash that allows new inputs and/or outputs to be appended to the transaction. This commits to all existing inputs and outputs.
Creates a shallow copy of this transaction. The iTransaction object is different, but the inputs and outputs are the same
Creates a deep copy of this transaction. The iTransaction object is different, but the inputs and outputs are the same
Given this (partial) transaction, formulate a TDPP request that another wallet can complete.
Return the sighash that signs the first N inputs/outputs. Pass Int.MAX_VALUE to sign "all", otherwise pass a number to sign those. This commits to the first inputs and outputs.
Returns true if this transaction has inputs that confer this authority. This function is used in transaction construction so if the input is read-only, it is assumed that it will be signed later (recall that unsigned read-only inputs are valid but do not confer any authorities), so true will be returned even though the authority is not conferred unless the read-only input is signed. If a blockchain does not support groups (or equivalent functionality), false is always returned.
Returns true if this transaction is a coinbase tx
Overwrite all inputs in this transaction with the provided list.
Overwrite all outputs with the provided list
Serialize this transaction into Base64Url format
Serialize this transaction into a byte array (using network serialization)