How to Search OP_Return Data?

19 replies 20 views
b3n_farmNewbie
Posts: 31 · Reputation: 7
#1Jan 15, 2017, 02:11 AM
I'm trying to find data stored in OP_Returns. I wanna check for specific texts like "Chancellor" or "fillippone" in Bitcoin transactions. Found some sites like preturnio and blockchair, but can't access them now. I have a Windows Bitcoin node running. Anyone got a step-by-step guide?
6 Reply Quote Share
0xLynxMember
Posts: 39 · Reputation: 205
#2Jan 15, 2017, 05:32 AM
Check out opreturn.net, it might work for you. It's been pretty useful for me, found some good results. Plus, you can save OP_Return messages on Dogecoin blockchain for free.
3 Reply Quote Share
b3n_farmNewbie
Posts: 31 · Reputation: 7
#3Jan 15, 2017, 02:01 PM
Thanks for the heads up! I hadn’t come across that site in my searches. But it looks like searching Bitcoin OP_Returns is kinda broken right now. Can you explain how to search for the word "brink" on I-return.net, like I'm five?
1 Reply Quote Share
0xLynxMember
Posts: 39 · Reputation: 205
#4Jan 17, 2017, 08:59 PM
Seems like the btc connection is down now, which is odd. I used it just six months ago without issues. Now, trying to search gives an error message. Maybe check back in a few days?
0 Reply Quote Share
gang2015Member
Posts: 269 · Reputation: 62
#5Jan 18, 2017, 02:31 AM
Yeah, preturnio was awesome for indexing Ordinal data. Now it's gone due to costs and interest dropping. Tried some lightweight explorers, but they don't index OP_RETURN either. Maybe look at that GitHub project for OP_RETURN indexing.
3 Reply Quote Share
Posts: 39 · Reputation: 22
#6Jan 18, 2017, 06:47 AM
Such a bummer Preturnio is gone. It was great for OP_RETURN searches.
2 Reply Quote Share
MadNovaHero Member
Posts: 122 · Reputation: 3536
#7Jan 20, 2017, 01:38 AM
Finding a good site for OP_Return text without an API is tough. Your best bet might be using your node, but I doubt there's a manual available. Btw, "Chancellor" was from the Genesis block.
4 Reply Quote Share
0xChadNewbie
Posts: 186 · Reputation: 3
#8Jan 20, 2017, 04:19 AM
I know a site that shows plain text from blkxxxx.dat files, but it’s a manual search. You can check it out: bitcoinstrings.com. Bitcoin Core doesn’t help much since it lacks commands to parse OP_Return data.
4 Reply Quote Share
0xNodeMember
Posts: 307 · Reputation: 80
#9Jan 22, 2017, 05:44 AM
Writing a parser for blk*.dat files isn’t too hard.
4 Reply Quote Share
b3n_farmNewbie
Posts: 31 · Reputation: 7
#10Jan 22, 2017, 07:41 AM
Not sure how to use it though. I need to run my own node, then what? Where do I run the code and how do I input my search text? I could really use some clear instructions.
1 Reply Quote Share
0xNodeMember
Posts: 307 · Reputation: 80
#11Jan 22, 2017, 08:05 AM
This shows that blockchain parsing is simple. Writing a parser isn't that complex.
1 Reply Quote Share
0xLynxMember
Posts: 39 · Reputation: 205
#12Jan 24, 2017, 11:17 AM
Yeah, but it only parses blocks, not transactions with OP_Return data. So, not really gonna help the OP who said they aren’t tech-savvy. Adapting it would take time and skills.
1 Reply Quote Share
m1kes4tFull Member
Posts: 60 · Reputation: 252
#13Jan 24, 2017, 05:04 PM
This script is good for searching specific texts in blocks. It uses an API but can be modified for your node for faster results.
3 Reply Quote Share
mr_apeNewbie
Posts: 170 · Reputation: 35
#14Jan 25, 2017, 07:26 AM
To use getrawtransaction, you need the txids to fetch them. And it fetches from mempool mostly, not blocks. With over a billion transactions, parsing for OP_RETURNs is a huge task. Better go with blk*.dat files.
4 Reply Quote Share
Posts: 8 · Reputation: 211
#15Jan 27, 2017, 02:59 AM
With some modifications, it can do what you're looking for.
6 Reply Quote Share
gang2015Member
Posts: 269 · Reputation: 62
#16Jan 27, 2017, 06:42 AM
Sorry for bumping an old thread, but found ra0.org. It’s probably the easiest way to search OP_RETURN data online. Bitcoinstrings.com still lacks a search feature.
5 Reply Quote Share
fox_gasNewbie
Posts: 1 · Reputation: 18
#17Jan 27, 2017, 11:05 AM
You might want to try bitcoinsearch.io. It’s kinda like Google but for Bitcoin blockchain. I built it myself, just saying.
5 Reply Quote Share
0xLynxMember
Posts: 39 · Reputation: 205
#18Jan 27, 2017, 03:05 PM
I compared ra0.org with the search engine by @axcelvoid. The latter returned way more results for my queries. ra0's interface is nice, but I want more full search options.
2 Reply Quote Share
gang2015Member
Posts: 269 · Reputation: 62
#19Jan 27, 2017, 05:12 PM
Totally agree. I forgot about his site even though I've visited before. Different results make sense since ra0.org focuses on OP_RETURN only.
0 Reply Quote Share
b3n_farmNewbie
Posts: 31 · Reputation: 7
#20Jan 27, 2017, 05:52 PM
Thanks everyone, this is exactly what I needed! Special thanks to @axcelvoid for the suggestions. I got more results on ra0 than on bitcoinsearch, even though the latter's interface is cleaner.
1 Reply Quote Share

Related topics