Help Center/
Web3 Node Engine Service/
Developer Guide/
Ethereum Node Engine/
JSON-RPC API Request Examples/
Using cURL to Send JSON-RPC API Requests/
Execution Layer
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" }
Parent topic: Using cURL to Send JSON-RPC API Requests
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot