更新时间:2024-09-03 GMT+08:00
使用cURL发送JSON-RPC API请求
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" } }
父主题: JSON-RPC请求示例