interface LightWalletService
Service for interacting with lightwalletd. Implementers of this service should make blocking calls because async concerns are handled at a higher level.
getBlockRange |
Return the given range of blocks. abstract fun getBlockRange(heightRange: IntRange): List<<ERROR CLASS>> |
getLatestBlockHeight |
Return the latest block height known to the service. abstract fun getLatestBlockHeight(): Int |
shutdown |
Cleanup any connections when the service is shutting down and not going to be used again. abstract fun shutdown(): Unit |
submitTransaction |
Submit a raw transaction. abstract fun submitTransaction(spendTransaction: ByteArray): <ERROR CLASS> |
LightWalletGrpcService |
Implementation of LightwalletService using gRPC for requests to lightwalletd. class LightWalletGrpcService : LightWalletService |