Are there any works of science fiction out there that relate to blockchain technology?
Found one: Stephenson's Cryptonomicon.

See also Digital Currency: ten years before Bitcoin, Neal Stephenson's Cryptonomicon