Class EsploraClient.Utxo

java.lang.Object
com.codename1.crypto.rpc.EsploraClient.Utxo
Enclosing class:
EsploraClient

public static final class EsploraClient.Utxo extends Object
An unspent output.
  • Method Details

    • getTxid

      public String getTxid()
      The id of the transaction that created the output.
    • getVout

      public long getVout()
      The output's index in that transaction.
    • getValue

      public long getValue()
      The value in satoshis.
    • isConfirmed

      public boolean isConfirmed()
      Whether the creating transaction is in a block.
    • getHeight

      public long getHeight()
      The block height, or -1 while unconfirmed.
    • toOutput

      public BitcoinTransaction.Output toOutput()
      The output as a PSBT's witness UTXO wants it.