Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.
public static final class EsploraClient.Utxo
- Object
- EsploraClient.Utxo
An unspent output.
Methods
public String getTxid() | The id of the transaction that created the output. |
public long getVout() | The output’s index in that transaction. |
public long getValue() | The value in satoshis. |
public boolean isConfirmed() | Whether the creating transaction is in a block. |
public long getHeight() | The block height, or -1 while unconfirmed. |
public BitcoinTransaction.Output toOutput() | The output as a PSBT’s witness UTXO wants it. |
Inherited methods
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.