Function Repository Resource:

WordsFromBitcoinBlockchain

Source Notebook

Get the words found in the input transaction bytes in bitcoin blockchains

Contributed by: Yana Outkin and Faizon Zaman

ResourceFunction["WordsFromBitcoinBlockchain"][blocknumber,amount]

returns the words in the transaction inputs in the bitcoin blocks starting from blocknumber and ending with blocknumber + amount.

ResourceFunction["WordsFromBitcoinBlockchain"][blocknumber,amount,prop]

returns the given property prop of the words found.

Details

The argument prop can be any of the following:
"WordCloud"returns a WordCloud
"Counts"returns a Dataset of word counts

Examples

Basic Examples (5) 

Returns the words found in the bitcoin blocks 589,489 through 589,539:

In[1]:=
words = ResourceFunction["WordsFromBitcoinBlockchain"][589489, 50]
Out[1]=

Create a WordCloud from these words:

In[2]:=
WordCloud[words]
Out[2]=

This can be done directly using the optional third argument "WordCloud":

In[3]:=
ResourceFunction[
 "WordsFromBitcoinBlockchain"][589489, 50, "WordCloud"]
Out[3]=

Create a Dataset from the words found:

In[4]:=
Dataset@ReverseSort[Counts[words]]
Out[4]=

This can be done directly using the optional third argument "Counts":

In[5]:=
ResourceFunction["WordsFromBitcoinBlockchain"][589489, 50, "Counts"]
Out[5]=

Neat Examples (1) 

Progression of signatures throughout bitcoin blockchain:

In[6]:=
(* Evaluate this cell to get the example input *) CloudGet["https://www.wolframcloud.com/obj/aaef31e6-e7e1-4798-b043-e35fa7734af6"]
Out[6]=

Publisher

Wolfram Summer Camp

Version History

  • 1.0.0 – 23 February 2021

Related Resources

Author Notes

This is a follow up from a previous submission regarding words from blockchain bitcoin transactions.

License Information