It's fairly straightforward in that you examine all notes, and correlate notes referencing others involving kind 9734 and 9735, parse out the amount from bolt invoice and tally.

The caveat is you need to do this for each note, and may not have all relevant notes based on the relays retrieving from.

So simple, but still kind of brute force retrieval and parsing. That's a lot of notes to index and cross reference.

Reply to this note

Please Login to reply.

Discussion

Very interesting in terms of how to approach it. Iโ€™d like to learn more about coding so I thought Lea ring to think through ideas I have might be a good path to explore.

Thanks again for the insight! ๐Ÿ™โšก๏ธ๐Ÿงก๐Ÿซ‚๐Ÿ’œ๐Ÿค™

If you just want the noteid then you can do a filtered request for just kind9735 and sum up from that. It's a lot less notes to go through and you'll just need to find the referenced note later for context