获取区块数据
参数名 | 参数类型 | 描述 | 是否必须 |
---|---|---|---|
hash | String | block hash | no |
number | String | block number | no |
参数名 | 参数类型 | 描述 |
---|---|---|
block | Object | |
block.gas_usage | Number | |
block.hash | String | |
block.info | Object | |
block.number | Number | |
block.parent_hash | Number | |
block.time | Number | |
block.tx_count | String | |
block.tx_merkle_hash | String | |
block.tx_receipt_merkle_hash | String | |
block.version | String | |
block.witness | String | |
status | String | |
witness_account | String |
curl -X GET https://api.iostabc.com/api/?apikey=6cfb2325fd0d6ccbd2e61d5793769eb0&module=block&action=get-block-detail&number=1
获取最新区块数据
参数名 | 参数类型 | 描述 | 是否必须 |
---|
参数名 | 参数类型 | 描述 |
---|---|---|
block | Object | |
block.gas_usage | Number | |
block.hash | String | |
block.info | Object | |
block.number | Number | |
block.parent_hash | Number | |
block.time | Number | |
block.tx_count | String | |
block.tx_merkle_hash | String | |
block.tx_receipt_merkle_hash | String | |
block.version | String | |
block.witness | String | |
status | String | |
witness_account | String |
curl -X GET https://api.iostabc.com/api/?apikey=6cfb2325fd0d6ccbd2e61d5793769eb0&module=block&action=get-latest-block