penumbra icon indicating copy to clipboard operation
penumbra copied to clipboard

View RPC method request: New transaction detected

Open grod220 opened this issue 1 year ago • 1 comments

Related to: https://github.com/penumbra-zone/web/issues/80

We'd like to build a feature where the web app triggers a toast notification when a new note is detected (to the user, symbolizing an incoming transaction, successful swap, etc). This requires a new view rpc streaming method. One that subscribes to the notes table and emits an event on additions. Perhaps swaps table too? 🤔

grod220 avatar Feb 01 '24 20:02 grod220

Rather than watching the notes table and returning notes, maybe it would be more generally useful to watch the transactions table and return TransactionInfo?

hdevalence avatar Feb 01 '24 20:02 hdevalence