I ran the below command, which I understood should've connected me to the mainnet:
curl -X POST \ -H "Content-Type: application/json" \ --data '{"jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": []}' \ "mainnet.infura.io/my-token
but there appears to continue to be some issue.
- Any idea why?
- Have I made some syntax error, or am I supposed to be swapping out an actual block number for
eth_blockNumber
, or similar?
To make sure it's clear that I didn't make the following mistake, I did swap out 'my-token' for the 20 digit token Infura generated for me.
Thanks so much!