Wolfram Research

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

WordsFromBitcoinBlockchain[blocknumber, amount]

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

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 word cloud
"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 word cloud 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]:=
{ResourceFunction["WordsFromBitcoinBlockchain"][89489, 50, "WordCloud"], ResourceFunction["WordsFromBitcoinBlockchain"][189489, 50, "WordCloud"], ResourceFunction["WordsFromBitcoinBlockchain"][389489, 50, "WordCloud"], ResourceFunction["WordsFromBitcoinBlockchain"][589489, 50, "WordCloud"]}
Out[6]=

Resource History

Related Resources

Author Notes

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

License Information