Considering that Plutus Smart Contracts have two parts (on chain and off chain) is there a way to make Queries to the Cardano Chain in the onchain part of the contract considering that the SC is actually already on the chain?
I want to be able to look up the transaction history of an address and check its balance.
I know I can do this via the Cardano Node, but considering that the contract must run on the node this should be possible how do I do it?