I want to scan new transactions as they are added to the block chain.

Does anyone have a suggestion on how to do this. Are there any APIs that allow for this? Or is there a way to directly tap into the bitcoin network with ruby?

  • I’d recommend blockchainwebhooks.com or blockcypher.com for handling this - I’ve used both services, they’ve both been stable and reliable. Blockchain WebHooks is much more affordable if you need to scale Aug 9, 2018 at 20:38

3 Answers 3


Full disclosure, I'm BlockCypher's Developer Advocate. We have both a WebSockets/WebHooks API for unconfirmed transactions, which you can read about here, along with a Ruby example: http://dev.blockcypher.com/?ruby#using-webhooks .

But if you wanted to run a local implementation that's primarily Ruby-based, you could try Coinbase's Toshi, or bitcoin-ruby:


You should starting by running Bitcoin Core, the reference client for the bitcoin network. Then you will find a ton of libraries (including Ruby) that can work with that to let you see new transactions, blocks, etc...


Yes, what you are looking for is websocket API. There are several APIs for this, but the most popular are blockchain.info and chain.com.

Here's a simple javascript implementation I made with chain.com websocket: http://jsfiddle.net/93vrLet3/1/

If you want to learn more, here's a step-by-step video and written tutorial on the subject: http://btcthreads.com/display-real-time-bitcoin-transactions-with-jquery-and-websocket/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.