skynetcap / serum-data

Open Book Market Data interface on Solana
https://openserum.io
MIT License
38 stars 8 forks source link

[SRM-44] Feature: Trade -> TXID correlation/lookup (non-Jupiter) #43

Closed skynetcap closed 2 years ago

skynetcap commented 2 years ago

Background: We need the ability to see the TX that created a Serum order that was a taker in the event queue.

Feature Idea: Search for the owner's recent transactions (10-20 if public RPC, switch to private). Best match versus a Serum instruction, or Serum inner instruction/CPI.

Additional Solution Notes: SolanaJ may need an update to read instruction data of CPIs. Linear: SRM-44

skynetcap commented 2 years ago

Closing this for now, the reverse lookup logic needs some thinking, and this causes insane RPC load.

For now we will hyperlink to the owner's account, which should be plenty for correlation. That work is being tracked in SRM-57