Update Streaming Transaction Status endpoints to use caching layer to get data from local storage.
SubscribeTransactionStatuses
SendAndSubscribeTransactionStatuses
Implementation tasks
- Add arguments to backend implementation that specify the user query criteria
- Update grpc handler to extract and pass the criteria from the protobuf request
- Update rest handler to extract and pass the criteria
- In the backend implementation:
a. Get the block(s) the request relates to
b. Lookup the execution result for the provided block
c. Get the snapshot for the result, then get the storage reader(s) required for the endpoint
d. Use the reader as usual
- Update error handling to use the new framework
- Ensure godocs are up to standard for all methods that are interacted with during the code paths.
Notes:
These methods should be updated to support querying local storage when indexing is enabled.