Package org.bitcoinj.core
Interface UTXOProvider
- All Known Subinterfaces:
FullPrunedBlockStore
- All Known Implementing Classes:
DatabaseFullPrunedBlockStore
,H2FullPrunedBlockStore
,LevelDBFullPrunedBlockStore
,MemoryFullPrunedBlockStore
,MySQLFullPrunedBlockStore
,PostgresFullPrunedBlockStore
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
Modifier and TypeMethodDescriptionint
Get the height of the chain head.getOpenTransactionOutputs
(List<ECKey> keys) Get the list ofUTXO
's for given keys.TheNetworkParameters
of this provider.
-
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.
-
getParams
NetworkParameters getParams()TheNetworkParameters
of this provider.- Returns:
- The network parameters.
-