forex.pm forex forum binary options trade

 Сryptocurrency exchanges => Binance - Сryptocurrency exchanges => Topic started by: Bitcoin on Apr 30, 2022, 06:43 am

Title: How can I query for all OP_RETURN data starting at a specific block height (or hash)
Post by: Bitcoin on Apr 30, 2022, 06:43 am
How can I query for all OP_RETURN data starting at a specific block height (or hash)

I'm working on a "light client" for ION (Identity Overlay Network), and I'd like to see if there is a better method to grab the OP_RETURN data that it needs in order to build state.


Currently I am iterating through every block starting at a specific height and then iterating through each transaction and each transaction output in order to find the OP_RETURN signature that I am looking for.


Is there a better way to accomplish this by requesting all OP_RETURN data only? The bandwidth requirements for downloading all of the block data is a bottleneck for what I'd like to do, but I don't think what I'm looking for is possible with only the Bitcoin Wire protocol.


Source: How can I query for all OP_RETURN data starting at a specific block height (or hash) (https://bitcoin.stackexchange.com/questions/113056/how-can-i-query-for-all-op-return-data-starting-at-a-specific-block-height-or-h)