title: How to get the data of an ethereum block using geth
body: <p>How can i get a block info from a running ethereum node using geth or nodejs or any other language? For example to get a block data from bitcoin, there is a config file which run a blocknotify.sh file when a transaction is confirmed and in that blocknotify.sh file there is this command : <code>bitcoin-cli getblock "$@" &gt;&gt; "$@.json"</code> which gets the block data then i can send a post request of that block data to an api. So i want to do the same thing that is to get the block data from ETH nodes and send a post request to an api when a transaction is confirmed. How can i do this ?</p>