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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getChainHeadHeight()
Get the height of the chain head.java.util.List<UTXO>
getOpenTransactionOutputs(java.util.List<ECKey> keys)
Get the list ofUTXO
's for given keys.NetworkParameters
getParams()
TheNetworkParameters
of this provider.
-
-
-
Method Detail
-
getOpenTransactionOutputs
java.util.List<UTXO> getOpenTransactionOutputs(java.util.List<ECKey> keys) throws UTXOProviderException
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
int getChainHeadHeight() throws UTXOProviderException
Get the height of the chain head.- Returns:
- The chain head height.
- Throws:
UTXOProviderException
- If there is an error.
-
getParams
NetworkParameters getParams()
TheNetworkParameters
of this provider.- Returns:
- The network parameters.
-
-