This site shows you unconfirmed bitcoin transactions: https://blockchain.info/unconfirmed-transactions

As I understand it, these unconfirmed transactions are received and rebroadcast by every bitcoin client. Given that they are on my computer, how would I go about extracting this information (i.e. a list of all unconfirmed bitcoin transactions) from the bitcoin client?

1 Answer 1


The RPC interface includes the getrawmempool command which returns transactions in your memory pool. Transactions stay in your memory pool until they're confirmed, so this is effetively a list your known unconfirmed transacions.

Since getrawmempool returns only a list of transaction ids, you'll have to getrawtransaction <txid> for each transaction id in your memory pool. Remember you can get JSON-formmated output via getrawtransaction <txid> 1.


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.