Package org.bitcoinj.core
Interface UTXOProvider
- 
- All Known Subinterfaces:
 FullPrunedBlockStore
- All Known Implementing Classes:
 DatabaseFullPrunedBlockStore,H2FullPrunedBlockStore,LevelDBFullPrunedBlockStore,MemoryFullPrunedBlockStore,MySQLFullPrunedBlockStore,PostgresFullPrunedBlockStore
public interface UTXOProviderA UTXOProvider encapsulates functionality for returning unspent transaction outputs, for use by the wallet or other code that crafts spends.A
FullPrunedBlockStoreis an internal implementation within bitcoinj. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetChainHeadHeight()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.NetworkParametersgetParams()TheNetworkParametersof 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 UTXOProviderExceptionGet the height of the chain head.- Returns:
 - The chain head height.
 - Throws:
 UTXOProviderException- If there is an error.
 
- 
getParams
NetworkParameters getParams()
TheNetworkParametersof this provider.- Returns:
 - The network parameters.
 
 
 - 
 
 -