-
public final class CompactTxStreamerGrpc.CompactTxStreamerStub extends AbstractAsyncStub<CompactTxStreamerGrpc.CompactTxStreamerStub>
A stub to allow clients to do asynchronous rpc calls to service CompactTxStreamer.
-
-
Method Summary
Modifier and Type Method Description voidgetLatestBlock(Service.ChainSpec request, StreamObserver<Service.BlockID> responseObserver)Return the height of the tip of the best chainvoidgetBlock(Service.BlockID request, StreamObserver<CompactFormats.CompactBlock> responseObserver)Return the compact block corresponding to the given block identifiervoidgetBlockNullifiers(Service.BlockID request, StreamObserver<CompactFormats.CompactBlock> responseObserver)Same as GetBlock except actions contain only nullifiersvoidgetBlockRange(Service.BlockRange request, StreamObserver<CompactFormats.CompactBlock> responseObserver)Return a list of consecutive compact blocksvoidgetBlockRangeNullifiers(Service.BlockRange request, StreamObserver<CompactFormats.CompactBlock> responseObserver)Same as GetBlockRange except actions contain only nullifiersvoidgetTransaction(Service.TxFilter request, StreamObserver<Service.RawTransaction> responseObserver)Return the requested full (not compact) transaction (as from zcashd)voidsendTransaction(Service.RawTransaction request, StreamObserver<Service.SendResponse> responseObserver)Submit the given transaction to the Zcash networkvoidgetTaddressTxids(Service.TransparentAddressBlockFilter request, StreamObserver<Service.RawTransaction> responseObserver)Return the txids corresponding to the given t-address within the given block rangevoidgetTaddressBalance(Service.AddressList request, StreamObserver<Service.Balance> responseObserver)StreamObserver<Service.Address>getTaddressBalanceStream(StreamObserver<Service.Balance> responseObserver)voidgetMempoolTx(Service.Exclude request, StreamObserver<CompactFormats.CompactTx> responseObserver)Return the compact transactions currently in the mempool; the results can be a few seconds out of date. If the Exclude list is empty, return all transactions; otherwise return all *except* those in the Exclude list (if any); this allows the client to avoid receiving transactions that it already has (from an earlier call to this rpc). The transaction IDs in the Exclude list can be shortened to any number of bytes to make the request more bandwidth-efficient; if two or more transactions in the mempool match a shortened txid, they are all sent (none is excluded). Transactions in the exclude list that don't exist in the mempool are ignored.voidgetMempoolStream(Service.Empty request, StreamObserver<Service.RawTransaction> responseObserver)Return a stream of current Mempool transactions. This will keep the output stream open while there are mempool transactions. It will close the returned stream when a new block is mined.voidgetTreeState(Service.BlockID request, StreamObserver<Service.TreeState> responseObserver)GetTreeState returns the note commitment tree state corresponding to the given block. See section 3.7 of the Zcash protocol specification. It returns several other useful values also (even though they can be obtained using GetBlock). The block can be specified by either height or hash.voidgetLatestTreeState(Service.Empty request, StreamObserver<Service.TreeState> responseObserver)voidgetSubtreeRoots(Service.GetSubtreeRootsArg request, StreamObserver<Service.SubtreeRoot> responseObserver)Returns a stream of information about roots of subtrees of the Sapling and Orchard note commitment trees.voidgetAddressUtxos(Service.GetAddressUtxosArg request, StreamObserver<Service.GetAddressUtxosReplyList> responseObserver)voidgetAddressUtxosStream(Service.GetAddressUtxosArg request, StreamObserver<Service.GetAddressUtxosReply> responseObserver)voidgetLightdInfo(Service.Empty request, StreamObserver<Service.LightdInfo> responseObserver)Return information about this lightwalletd instance and the blockchainvoidping(Service.Duration request, StreamObserver<Service.PingResponse> responseObserver)Testing-only, requires lightwalletd --ping-very-insecure (do not enable in production)-
Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub -
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getLatestBlock
void getLatestBlock(Service.ChainSpec request, StreamObserver<Service.BlockID> responseObserver)
Return the height of the tip of the best chain
-
getBlock
void getBlock(Service.BlockID request, StreamObserver<CompactFormats.CompactBlock> responseObserver)
Return the compact block corresponding to the given block identifier
-
getBlockNullifiers
void getBlockNullifiers(Service.BlockID request, StreamObserver<CompactFormats.CompactBlock> responseObserver)
Same as GetBlock except actions contain only nullifiers
-
getBlockRange
void getBlockRange(Service.BlockRange request, StreamObserver<CompactFormats.CompactBlock> responseObserver)
Return a list of consecutive compact blocks
-
getBlockRangeNullifiers
void getBlockRangeNullifiers(Service.BlockRange request, StreamObserver<CompactFormats.CompactBlock> responseObserver)
Same as GetBlockRange except actions contain only nullifiers
-
getTransaction
void getTransaction(Service.TxFilter request, StreamObserver<Service.RawTransaction> responseObserver)
Return the requested full (not compact) transaction (as from zcashd)
-
sendTransaction
void sendTransaction(Service.RawTransaction request, StreamObserver<Service.SendResponse> responseObserver)
Submit the given transaction to the Zcash network
-
getTaddressTxids
void getTaddressTxids(Service.TransparentAddressBlockFilter request, StreamObserver<Service.RawTransaction> responseObserver)
Return the txids corresponding to the given t-address within the given block range
-
getTaddressBalance
void getTaddressBalance(Service.AddressList request, StreamObserver<Service.Balance> responseObserver)
-
getTaddressBalanceStream
StreamObserver<Service.Address> getTaddressBalanceStream(StreamObserver<Service.Balance> responseObserver)
-
getMempoolTx
void getMempoolTx(Service.Exclude request, StreamObserver<CompactFormats.CompactTx> responseObserver)
Return the compact transactions currently in the mempool; the results can be a few seconds out of date. If the Exclude list is empty, return all transactions; otherwise return all *except* those in the Exclude list (if any); this allows the client to avoid receiving transactions that it already has (from an earlier call to this rpc). The transaction IDs in the Exclude list can be shortened to any number of bytes to make the request more bandwidth-efficient; if two or more transactions in the mempool match a shortened txid, they are all sent (none is excluded). Transactions in the exclude list that don't exist in the mempool are ignored.
-
getMempoolStream
void getMempoolStream(Service.Empty request, StreamObserver<Service.RawTransaction> responseObserver)
Return a stream of current Mempool transactions. This will keep the output stream open while there are mempool transactions. It will close the returned stream when a new block is mined.
-
getTreeState
void getTreeState(Service.BlockID request, StreamObserver<Service.TreeState> responseObserver)
GetTreeState returns the note commitment tree state corresponding to the given block. See section 3.7 of the Zcash protocol specification. It returns several other useful values also (even though they can be obtained using GetBlock). The block can be specified by either height or hash.
-
getLatestTreeState
void getLatestTreeState(Service.Empty request, StreamObserver<Service.TreeState> responseObserver)
-
getSubtreeRoots
void getSubtreeRoots(Service.GetSubtreeRootsArg request, StreamObserver<Service.SubtreeRoot> responseObserver)
Returns a stream of information about roots of subtrees of the Sapling and Orchard note commitment trees.
-
getAddressUtxos
void getAddressUtxos(Service.GetAddressUtxosArg request, StreamObserver<Service.GetAddressUtxosReplyList> responseObserver)
-
getAddressUtxosStream
void getAddressUtxosStream(Service.GetAddressUtxosArg request, StreamObserver<Service.GetAddressUtxosReply> responseObserver)
-
getLightdInfo
void getLightdInfo(Service.Empty request, StreamObserver<Service.LightdInfo> responseObserver)
Return information about this lightwalletd instance and the blockchain
-
ping
void ping(Service.Duration request, StreamObserver<Service.PingResponse> responseObserver)
Testing-only, requires lightwalletd --ping-very-insecure (do not enable in production)
-
-
-
-