I think you would have to play with zmq settings in bitcoin.conf and then read those notifications. Sorry I don't exactly how to do it but I know that zmq feature is used for that.
Yeah I forgot my node can do all that haha. The whole idea of bitcoin is not to query any api unless it is the one you control. I will probably install rpc explorer and query that endpoint. Thanks
reply