Interface UTXOProvider

  • All Known Subinterfaces:
    FullPrunedBlockStore
    All Known Implementing Classes:
    MemoryFullPrunedBlockStore

    public interface UTXOProvider
    A UTXOProvider encapsulates functionality for returning unspent transaction outputs, for use by the wallet or other code that crafts spends.

    A FullPrunedBlockStore is an internal implementation within bitcoinj.

    • Method Detail

      • getOpenTransactionOutputs

        java.util.List<UTXO> getOpenTransactionOutputs​(java.util.List<ECKey> keys)
                                                throws UTXOProviderException
        Get the list of UTXO's for given keys.
        Parameters:
        keys - List of keys.
        Returns:
        The list of transaction outputs.
        Throws:
        UTXOProviderException - If there is an error.
      • network

        Network network()
        The Network of this provider.
        Returns:
        the network