Package org.bitcoindevkit
Class LocalOutput
-
- All Implemented Interfaces:
-
org.bitcoindevkit.Disposable
public final class LocalOutput implements Disposable
An unspent output owned by a `Wallet`.
-
-
Field Summary
Fields Modifier and Type Field Description private OutPointoutpointprivate TxOuttxoutprivate KeychainKindkeychainprivate BooleanisSpentprivate UIntderivationIndexprivate ChainPositionchainPosition
-
Constructor Summary
Constructors Constructor Description LocalOutput(OutPoint outpoint, TxOut txout, KeychainKind keychain, Boolean isSpent, UInt derivationIndex, ChainPosition chainPosition)
-
Method Summary
Modifier and Type Method Description final OutPointgetOutpoint()Reference to a transaction output final UnitsetOutpoint(OutPoint outpoint)Reference to a transaction output final TxOutgetTxout()Transaction output final UnitsetTxout(TxOut txout)Transaction output final KeychainKindgetKeychain()Type of keychain final UnitsetKeychain(KeychainKind keychain)Type of keychain final BooleanisSpent()Whether this UTXO is spent or not final UnitsetSpent(Boolean isSpent)Whether this UTXO is spent or not final UIntgetDerivationIndex()The derivation index for the script pubkey in the wallet final UnitsetDerivationIndex(UInt derivationIndex)The derivation index for the script pubkey in the wallet final ChainPositiongetChainPosition()The position of the output in the blockchain. final UnitsetChainPosition(ChainPosition chainPosition)The position of the output in the blockchain. Unitdestroy()-
-
Constructor Detail
-
LocalOutput
LocalOutput(OutPoint outpoint, TxOut txout, KeychainKind keychain, Boolean isSpent, UInt derivationIndex, ChainPosition chainPosition)
-
-
Method Detail
-
getOutpoint
final OutPoint getOutpoint()
Reference to a transaction output
-
setOutpoint
final Unit setOutpoint(OutPoint outpoint)
Reference to a transaction output
-
getKeychain
final KeychainKind getKeychain()
Type of keychain
-
setKeychain
final Unit setKeychain(KeychainKind keychain)
Type of keychain
-
getDerivationIndex
final UInt getDerivationIndex()
The derivation index for the script pubkey in the wallet
-
setDerivationIndex
final Unit setDerivationIndex(UInt derivationIndex)
The derivation index for the script pubkey in the wallet
-
getChainPosition
final ChainPosition getChainPosition()
The position of the output in the blockchain.
-
setChainPosition
final Unit setChainPosition(ChainPosition chainPosition)
The position of the output in the blockchain.
-
-
-
-