Help Center/ Web3 Node Engine Service/ Developer Guide/ TRON Node Engine/ JSON-RPC Request Examples/ Using cURL to Send JSON-RPC API Requests
Updated on 2024-11-14 GMT+08:00
Using cURL to Send JSON-RPC API Requests
Request example (with credential)
curl -k -X POST https://your-http-endpoint/your-credential/jsonrpc --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":64}'
Request example (with IAM token)
curl -k -X POST 'X-Auth-Token:your-iam-token' https://your-http-endpoint/jsonrpc --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":64}' Response example
{
"jsonrpc": "2.0",
"id": 64,
"result": {
"startingBlock": "0x32e92c",
"currentBlock": "0x32e92e",
"highestBlock": "0x32e92e"
}
} Parent topic: JSON-RPC Request Examples
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank 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