0

I've set up zeromq so I can listen for blocks & transactions. However I'm not certain how I can ping the bitcoin node for older information.

Is there someway I can ping the bitcoin node for say a block at X height or say a transaction with X id?

Trevor Wood
  • 181
  • 9

1 Answers1

2

getrawtransaction can be used for transactions if txindex=1 is saved in config

getblock can be used for blocks

Since you mentioned nodejs, you should check bcoin: https://github.com/bcoin-org/bcoin

Bitcoin nodes can even be run in browser.