更新时间:2023-09-11 GMT+08:00
使用cURL发送HTTP API请求
Request example (With Credential):
curl -X GET https://your-http-endpoint/your-credential/wallet/getnowblock Request example(With IAM Token): curl -X GET 'X-Auth-Token:your-iam-token' https://your-http-endpoint/wallet/getnowblock
Response example:
{ "blockID": "000000000204b46379ebc1d66a41a816e1b8d0c3e5f917a6af5e4471288715ef", "block_header": { "raw_data": { "number": 33862755, "txTrieRoot": "0000000000000000000000000000000000000000000000000000000000000000", "witness_address": "TVK7n5qks4vNrkfBnjTzEs8XWF3gbv9oNr", "parentHash": "000000000204b462a2825cafbae6838e8ede6e223cc3ef52ef63ee29679123b7", "version": 27, "timestamp": 1684719705000 }, "witness_signature": "dbf106c634b5e7cb2710bd93dcdd38ef0be012c197866a2c3f0ceb99cbce76073cda4af405f0e1236214bd1cd9f4a3122c42ae94e727912a847a760b6c9ca91000" } }
父主题: HTTP请求示例