When I try to connect testnet websocket provided by blockchain.info api. Connection doesn't establish, when i looked into the code. It says for testnet it uses "wss://ws.testnet.blockchain.info/inv" url. I guess that blockchain.info stops the service for testnet. Is there any other websocket api provider for bitcoin testnet?

2 Answers 2


~> curl --head https://testnet.blockchain.info HTTP/1.1 503 Service Unavailable

It's likely the service just isn't something that exists.

  • I found out another way to do this. smartbit.com.au provide api for both testnet and mainnet for bitcoin with some awesome api playground. I built my app over this website. But thanks for your comment though. :) Nov 27, 2017 at 14:07

I'd recommend using the Esplora API that powers blockstream.info for testnet blockchain data.

For example you can use curl to get the latest testnet block hash:

curl https://blockstream.info/testnet/api/blocks/tip/hash

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.