I'm exploring what APIs are available to explore mainnet and testnet and a small task I'm trying to do is to get block height of testnet.
Docs about networks tell that there's a testnet open node:
Well, I'm not sure about login and passphrase, but I tried
const daemon = await monerojs.connectToDaemonRpc("http://monero-testnet.exan.tech:28081", "superuser", "abctesting123");
TypeError: The URL must be of scheme file
What exactly am I doing wrong? Is
monero-testnet.exan.tech:28081 an endpoint for json-rpc? Are json-rpc and daemon-rpc the same? Is there a public endpoint that I can use with
monerojs.connectToDaemonRpc at all? In fact any pointer to get block height via some public API is welcome.