<p>For statistics you’re best using <a href="https://github.com/rustyrussell/bitcoin-iterate" rel="nofollow noreferrer">bitcoin-iterate</a> which will let you extract information very quickly. Here you want to be searching for scripts beginning with the op return byte, it takes only tens of minutes to search the whole chain from disk. </p>

CC BY-SA 4.0
2019-06-05T13:49:13.640Z
2019-06-05T13:49:13.640Z
Claris
<p>Is there a possible way to extract the bitcoin transaction protocoll with Python and extract specifically OP RETURN transaction? 
I want to plot the number of those over the course of time to derive some statistics from it.</p>

<p>Best regards
Nils</p>

<bitcoin-core><python><timestamp><op-return>
Retrieve number of OP-RETURN transaction
Nils2
# Retrieve number of OP-RETURN transaction

(Asked by: username_0 on 2019-06-05)

Is there a possible way to extract the bitcoin transaction protocoll with Python and extract specifically OP RETURN transaction?
I want to plot the number of those over the course of time to derive some statistics from it.

Best regards
Nils

**Tags:** bitcoin-core, python, timestamp, op-return


---

## 1 answers

### Answer by username_1 on 2019-06-05. Score: 1

For statistics you’re best using [bitcoin-iterate](https://github.com/rustyrussell/bitcoin-iterate) which will let you extract information very quickly. Here you want to be searching for scripts beginning with the op return byte, it takes only tens of minutes to search the whole chain from disk.


---

