-
- All Implemented Interfaces:
-
co.electriccoin.lightwallet.client.PartialWalletClient,co.electriccoin.lightwallet.client.util.Disposable
public interface WalletClient implements PartialWalletClient, Disposable
Client for interacting with lightwalletd.
-
-
Method Summary
Modifier and Type Method Description abstract Flow<Response<GetAddressUtxosReplyUnsafe>>fetchUtxos(List<String> tAddresses, BlockHeightUnsafe startHeight)abstract Flow<Response<CompactBlockUnsafe>>getBlockRange(ClosedRange<BlockHeightUnsafe> heightRange)abstract Flow<Response<RawTransactionUnsafe>>getTAddressTransactions(String tAddress, ClosedRange<BlockHeightUnsafe> blockHeightRange)Gets all the transactions for a given t-address over the given range. abstract Flow<Response<SubtreeRootUnsafe>>getSubtreeRoots(UInt startIndex, ShieldedProtocolEnum shieldedProtocol, UInt maxEntries)Returns a stream of information about roots of subtrees of the Sapling and Orchard note commitment trees. abstract Flow<Response<RawTransactionUnsafe>>observeMempool()abstract Unitreconnect()Reconnect to the same or a different server. -
Methods inherited from class co.electriccoin.lightwallet.client.WalletClient
dispose, fetchTransaction, getLatestBlockHeight, getServerInfo, getTreeState, submitTransaction -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
fetchUtxos
abstract Flow<Response<GetAddressUtxosReplyUnsafe>> fetchUtxos(List<String> tAddresses, BlockHeightUnsafe startHeight)
- Parameters:
tAddresses- the array containing the transparent addresses to use.startHeight- the starting height to use.
-
getBlockRange
abstract Flow<Response<CompactBlockUnsafe>> getBlockRange(ClosedRange<BlockHeightUnsafe> heightRange)
- Parameters:
heightRange- the inclusive range to fetch.
-
getTAddressTransactions
abstract Flow<Response<RawTransactionUnsafe>> getTAddressTransactions(String tAddress, ClosedRange<BlockHeightUnsafe> blockHeightRange)
Gets all the transactions for a given t-address over the given range. In practice, this is effectively the same as an RPC call to a node that's running an insight server. The data is indexed and responses are fairly quick.
-
getSubtreeRoots
abstract Flow<Response<SubtreeRootUnsafe>> getSubtreeRoots(UInt startIndex, ShieldedProtocolEnum shieldedProtocol, UInt maxEntries)
Returns a stream of information about roots of subtrees of the Sapling and Orchard note commitment trees.
- Parameters:
startIndex- Index identifying where to start returning subtree rootsshieldedProtocol- Shielded protocol to return subtree roots for.maxEntries- Maximum number of entries to return, or 0 for all entries
-
observeMempool
abstract Flow<Response<RawTransactionUnsafe>> observeMempool()
-
-
-
-