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?
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?
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.