Bitcoin Forum
September 04, 2024, 11:22:24 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Searching for OP_return data  (Read 171 times)
fillippone (OP)
Legendary
*
Online Online

Activity: 2282
Merit: 16332


Fully fledged Merit Cycler - Golden Feather 22-23


View Profile WWW
August 31, 2024, 11:13:05 AM
 #1

I want to search for data in OP_Returns.

I want to look for text in OP_Return data and see in which transaction is a text like "Chancellor" or "fillippone" or any other text in the OP_Return data.

I know some websites were allowing that, like preturnio.com or blockchair.com or others, but for various reasons (offline, API only), I haven't been able to get use of them.


I have a Windows-based Bitcoin node as well (my Raspberry node is currently offline).
Is there any step-by-step guide for this?

Thanks!



█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
satscraper
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1548



View Profile
August 31, 2024, 11:33:02 AM
Merited by d5000 (1)
 #2

Try opreturn.net, probably it would help you as it may deliver searching  results from the content of OP_Return on a few relevant  networks including bitcoin. I have made a few searches with positive outcomes.

BTW,  you may use this site to save your  OP_Return message on Dogecoin blockchain for free.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
fillippone (OP)
Legendary
*
Online Online

Activity: 2282
Merit: 16332


Fully fledged Merit Cycler - Golden Feather 22-23


View Profile WWW
August 31, 2024, 11:39:50 AM
 #3

Try opreturn.net, probably it would help you as it may deliver searching  results from the content of OP_Return on a few relevant  networks including bitcoin.

Thanks for pointing me to this website that actually never popped out in various research I have done so far.
Actually, searching  for OP_returns in the Bitcoin Blockchain seems disabled.
Can you explain, like I'm 5, how to search the word "brink" on the Bitcoin blockchain using I-return.net?


█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
satscraper
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1548



View Profile
August 31, 2024, 12:06:10 PM
Merited by vapourminer (1)
 #4

Try opreturn.net, probably it would help you as it may deliver searching  results from the content of OP_Return on a few relevant  networks including bitcoin.

Thanks for pointing me to this website that actually never popped out in various research I have done so far.
Actually, searching  for OP_returns in the Bitcoin Blockchain seems disabled.
Can you explain, like I'm 5, how to search the word "brink" on the Bitcoin blockchain using I-return.net?



Oh. it seems that the connection to btc is disabled at the moment, which is very strange for me. This site is among my bookmarks and last time i have used it (around half a year ago) this connection was active. For the search particular word you had to input it into search field on the front page but right now  such action results in the following message:  

Quote

Probably, some temporary problems with their node, who knows, should check it in few days.


███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
ABCbits
Legendary
*
Offline Offline

Activity: 2982
Merit: 7850


Crypto Swap Exchange


View Profile
September 02, 2024, 09:16:46 AM
Merited by fillippone (3)
 #5

I know some websites were allowing that, like preturnio.com or blockchair.com or others, but for various reasons (offline, API only), I haven't been able to get use of them.

preturnio was a great website, which also index Ordinal data. But it seems to be discounted due to high operational cost and lack of interest.

I have a Windows-based Bitcoin node as well (my Raspberry node is currently offline).
Is there any step-by-step guide for this?

I've read and try few lightweight self-hosted block explorer, but none of them index OP_RETURN. At best, you could try using unpopular GitHub project such as https://github.com/sripwoud/bitcoin-opreturn-indexer which seems to index OP_RETURN data, where you can query it using hex data.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
paid2
Hero Member
*****
Offline Offline

Activity: 798
Merit: 2514


Crypto Swap Exchange


View Profile
September 02, 2024, 09:28:08 AM
Merited by fillippone (3), d5000 (1)
 #6

It's sad that Preturnio is now offline :  Project: Preturnio - a full text search engine for Bitcoin

It was a nice tool, especially to search for OP_RETURN data.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Ambatman
Sr. Member
****
Offline Offline

Activity: 392
Merit: 255


Top Crypto Casino


View Profile WWW
September 03, 2024, 08:24:24 AM
 #7

I want to search for data in OP_Returns.

I want to look for text in OP_Return data and see in which transaction is a text like "Chancellor" or "fillippone" or any other text in the OP_Return data.

I know some websites were allowing that, like preturnio.com or blockchair.com or others, but for various reasons (offline, API only), I haven't been able to get use of them.


I have a Windows-based Bitcoin node as well (my Raspberry node is currently offline).
Is there any step-by-step guide for this?

Thanks!


Not quite easy to find a site that assist in finding specific text in an OP return without API.
Your best bet would be using your node but I guess there's no manual for it.
The chancellor,  was the message on the Genesis block by satoshi
https://btc.com/btc/block/0

Quote
The Times 03/Jan/2009 Chancellor on brink of second bailout for banks

nc50lc
Legendary
*
Offline Offline

Activity: 2520
Merit: 6001


Self-proclaimed Genius


View Profile
September 03, 2024, 08:35:15 AM
Merited by fillippone (3)
 #8

I want to look for text in OP_Return data and see in which transaction is a text like "Chancellor" or "fillippone" or any other text in the OP_Return data.
I know one site that shows every plain text in each of blkxxxx.dat files but it'll be a manual process (checking each blk file then CTRL+F to find a string).
Here's the site: https://bitcoinstrings.com/

Quote from: fillippone
I have a Windows-based Bitcoin node as well (my Raspberry node is currently offline).
Is there any step-by-step guide for this?
Not with Bitcoin Core alone since it has no RPC command that can parse OP_Return data into plain text.
The closest is getrawtransaction true or decodetransaction to check for "OP_Return" outputs and convert hex into text. But that's not what you need.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
amaclin1
Sr. Member
****
Offline Offline

Activity: 854
Merit: 327


View Profile
September 03, 2024, 12:14:37 PM
Merited by d5000 (2)
 #9

It is not very difficult to write a parser of blk*.dat files

Code:
#include "Bitcoin.h"

BlockChain::BlockChain ( QObject* parent ) : QFile ( parent ), blkFile ( START_BLOCK )
{
  QTimer::singleShot ( 0, this, SLOT ( start ( ) ) );
}

void BlockChain::start ( )
{
  setFileName ( blkFileName ( blkFile++ ) );
  if ( ( END_BLOCK >= 0 ) && ( blkFile == END_BLOCK ) )
  {
    _trace ( QString ( "done [%1]" ).arg ( fileName ( ) ) );
    Chainer ( ).block ( QByteArray ( ), blkFile - 1 );
    deleteLater ( );
  }
  else if ( !open ( QIODevice::ReadOnly ) )
  {
    _trace ( QString ( "cant open [%1]" ).arg ( fileName ( ) ) );
    Chainer ( ).block ( QByteArray ( ), blkFile - 1 );
    deleteLater ( );
  }
  else
  {
    _trace ( QString ( "processing [%1] defu=%2/%3 uxto=%4 sum=%5" ).arg ( fileName ( ) )
                 .arg ( DefUnknown ( ).economy ( ) ).arg ( DefUnknown ( ).size ( ) )
                 .arg ( ScriptResolver ( ).size ( ) )
                 .arg ( Util::getAmount ( MyHash ( ).getUxToAmount ( ) ) ) );
    QTimer::singleShot ( 0, this, SLOT ( next ( ) ) );
  }
}

void BlockChain::next ( )
{
  if ( pos ( ) < size ( ) )
  {
    quint32 magic;
    quint32 sz ( read ( (char*)&magic, 4 ) );
    while ( !magic && pos ( ) < size ( ) - 4 )
      read ( (char*)&magic, 4 );
    xassert ( ( ( magic == MAGIC_ID ) || !magic ) && ( sz == 4 ) )
    if ( magic )
    {
      read ( (char*)&sz, 4 );
      Chainer ( ).block ( read ( sz & 0x07FFFFFFFuLL ), blkFile - 1 );
      QTimer::singleShot ( 0, this, SLOT ( next ( ) ) );
      return;
    }
  }
  close ( );
  QTimer::singleShot ( 0, this, SLOT ( start ( ) ) );
}

const QString BlockChain::blkFileName ( const int i ) const
{
  return
    ( i < 10 ) ? QString ( DATA_ROOT "\\blocks\\blk0000%1.dat" ).arg ( i ) :
    ( i < 100 ) ? QString ( DATA_ROOT "\\blocks\\blk000%1.dat" ).arg ( i ) :
    ( i < 1000 ) ? QString ( DATA_ROOT "\\blocks\\blk00%1.dat" ).arg ( i ) :
    QString ( DATA_ROOT "\\blocks\\blk0%1.dat" ).arg ( i );
}
fillippone (OP)
Legendary
*
Online Online

Activity: 2282
Merit: 16332


Fully fledged Merit Cycler - Golden Feather 22-23


View Profile WWW
September 03, 2024, 09:28:38 PM
 #10

It is not very difficult to write a parser of blk*.dat files
<...>


I am not very sure on how I shall use it.
I have to run my own node, but then?
Where shall I run that code, and how shall I input the text I want to look for?
As I said, I need clear instructions. I am not the most technical guy, to say the least.



█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
amaclin1
Sr. Member
****
Offline Offline

Activity: 854
Merit: 327


View Profile
Today at 06:35:53 AM
 #11

I am not very sure on how I shall use it.
This is just a demonstration that parsing blockchain code is simple.
It is not difficult to write your own parser.
I think this is better, than looking for existing solutions
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!