GOOGLE BLOCKCHAIN NODE

Hello everyone, I am not sure if this is the right place to post this, however, I need some help.

I am new to GCP and I am trying to run an ethereum validator node on Google Cloud platform using the Blockchain node engine. So far, I’ve created a new node and synced it with the ethereum network. I wanted to get the latest block, so I ran:

curl -H POST \
  -H "X-goog-api-key: YOUR_API_KEY" \
  "Content-Type: application/json" \
  -d '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "eth_getBlockByNumber",
    "params": ["0x1", true]
  }' \
  http://YOUR_NODES_URL

with my node URL and API key, but it just returns the genesis block.

3 Likes

Hello @AN00B ,

Welcome to Google Cloud Community!

It would be best to be in touch on this link with regards to Blockchain Node Engine.

1 Like

you are requesting block “0x1” which is in fact the genesis block.

1 Like