Package org.bitcoinj.core
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 Details
-
getOpenTransactionOutputs
Get the list ofUTXO
's for given keys.- Parameters:
keys
- List of keys.- Returns:
- The list of transaction outputs.
- Throws:
UTXOProviderException
- If there is an error.
-
getChainHeadHeight
Get the height of the chain head.- Returns:
- The chain head height.
- Throws:
UTXOProviderException
- If there is an error.
-
network
Network network()TheNetwork
of this provider.- Returns:
- the network
-