Using cURL for testing
These examples provide a starting point for testing your connection and querying blockchain data using cURL commands.
Fetch the current block number
curl --location --request POST 'https://go.getblock.io/<ACCESS_TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": "getblock.io"
}'{
"jsonrpc": "2.0",
"id": "getblock.io",
"result": "0x1449641"
}Get the chain ID
Check account balance by address
Last updated
Was this helpful?