Skip to content

Julia package for analyzing the Bitcoin blockchain via the API provided by https://blockchain.info/

License

Notifications You must be signed in to change notification settings

stejin/BitcoinBlockchain.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BitcoinBlockchain.jl

Julia package for analyzing the Bitcoin blockchain via the API provided by https://blockchain.info/

Installation

Pkg.clone("https://github.com/stejin/DandelionWebSockets.jl.git")
Pkg.clone("https://github.com/stejin/BitcoinBlockchain.jl.git")

Usage

using BitcoinBlockchain

handler = BitcoinBlockchainHandler()

BitcoinBlockchain.connect(handler)

transaction(x) = global latest_transaction = x
block(b) = global latest_block = b

subscribe_unconfirmed_transcations(handler, transaction)
subscribe_new_blocks(handler, block)

# Wait for new transaction

sleep(5)

latest_transaction

# Wait for new block

#latest_block

About

Julia package for analyzing the Bitcoin blockchain via the API provided by https://blockchain.info/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages