It might be a very basic question. But here's what I want to achieve:
I want to make a web app which interacts with a contract on testnet/mainnet. I can see in the documentation that you have to provide the local port to web3js to connect to a local running ethereum instance/simulation:
But I want to connect it to the testnet or mainnet. Is it possible to do that without actually hosting a real node(test or main)?
And if the only way to do this is by running an actual node on local computer, then what is the best way to connect to it with web3? I read somewhere that RPC is not that secure.
Please guide me on these noobie questions.
Thanks in advance!