Interface Utxo

All Known Implementing Classes:
TransactionInputDataUtxo, Utxo.Basic, Utxo.Complete, Utxo.Signable

public interface Utxo
UTXO info for transaction signing. Immutable and all fields non-nullable.

Non-segwit can be signed without amount, but we're focusing on modern Bitcoin, so we're going to simplify things by making Utxo.Signable mandatory in many methods.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Bare minimum UTXO info: txId and index
    static class 
    UTXO with amount and scriptPubKey.
    static class 
    UTXO with "amount" which is necessary for signing a segwit transaction.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    static Utxo.Basic
    of(org.bitcoinj.base.Sha256Hash txId, int index)
     
    of(org.bitcoinj.base.Sha256Hash txId, int index, org.bitcoinj.base.Coin amount)
     
    of(org.bitcoinj.base.Sha256Hash txId, int index, org.bitcoinj.base.Coin amount, org.bitcoinj.script.Script scriptPubKey)
     
    static Utxo
    of(org.bitcoinj.core.TransactionOutPoint outPoint)
     
    org.bitcoinj.base.Sha256Hash
     
  • Method Details

    • txId

      org.bitcoinj.base.Sha256Hash txId()
    • index

      int index()
    • of

      static Utxo.Basic of(org.bitcoinj.base.Sha256Hash txId, int index)
    • of

      static Utxo.Signable of(org.bitcoinj.base.Sha256Hash txId, int index, org.bitcoinj.base.Coin amount)
    • of

      static Utxo.Complete of(org.bitcoinj.base.Sha256Hash txId, int index, org.bitcoinj.base.Coin amount, org.bitcoinj.script.Script scriptPubKey)
    • of

      static Utxo of(org.bitcoinj.core.TransactionOutPoint outPoint)