I've been attempting to run a script from my terminal, and have been getting this error:
Error: CONNECTION ERROR: Couldn't connect to node https://mainnet.infura.io.
I've installed Web3j on my local machine, and unless I'm missing something, I've successfully generated a token (though it'd be great if Infura's site had some way to confirm that the digits I previously saved when doing so are correct).
So from here, I tried the the following command:
Web3j web3 = Web3j.build(new InfuraHttpService("https://morden.infura.io/your-token"));
And it's telling me:
syntax error near unexpected token `('
I'm so green that I'm unsure where the specific syntax error may be - or even if running this command was the right step to take. I swapped out "your-token" for the 20 digits I understood my token to be comprised of, to make sure that's clear.
Appreciate any help. Thanks!