Updated on 2023-12-06 GMT+08:00

Execution Layer

Request example (with credential)

curl -X POST https://your-http-endpoint/your-credential \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method":  "eth_blockNumber",
"params": [],
"id": 1
}'
Request example (with IAM token)
curl -X POST -H 'X-Auth-Token:your-iam-token' https://your-http-endpoint \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method":  "eth_blockNumber",
"params": [],
"id": 1
}'

Response example

{
"jsonrpc": "2.0",
"id": 1,
"result": "00f3c34b"
}