Block
APIs to obtain block related details
1. Get latest block list
Url RequestField
Type
Description
count
int
number of latest blocks. (limited between 1 and 50)
ResponseField
Type
Description
block_hash
String
block hash
block_height
int
block height
txs_root
String
the merkleroot of all transactions in the block
bookkeepers
String
keepers of this block, divided by &
consensus_data
String
consensus data
block_size
int
size of this block, unit:bytes
block_time
int
UNIX time of this block
tx_count
int
the number of transactions in this block
2. Get block list by page
Url RequestField
Type
Description
page_size
int
number of records in one page (The page size is limited between 1 and 20)
page_number
int
number of the page (At least 1 or greater)
ResponseField
Type
Description
total
int
total blocks
block_hash
String
block hash
block_height
int
block height
txs_root
String
the merkleroot of all transactions in the block
bookkeepers
String
keepers of this block, divided by &
consensus_data
String
consensus data
block_size
int
size of this block, unit:bytes
block_time
int
UNIX time of this block
tx_count
int
the number of transactions in this block
3. Get block detail by height or hash
Url Field
Type
Description
param
String
block height or block hash
ResponseField
Type
Description
block_hash
String
block hash
block_height
int
block height
txs_root
String
the merkleroot of all transactions in the block
bookkeepers
String
keepers of this block, divided by &
consensus_data
String
consensus data
block_size
int
size of this block, unit:bytes
block_time
int
UNIX time of this block
tx_count
int
the number of transactions in this block
txs.tx_hash
String
transaction hash
txs.tx_type
int
transaction type (208/209/210)
txs.confirm_flag
int
transaction state on the blockchain, 1:succees 0:failure
txs.tx_time
int
UNIX time of the transaction
4. Get latest blocks
RequestField
Type
Description
count
int
number of the latest blocks
ResponseField
Type
Description
block_height
int
block height
generate_time
int
time of block generation,unit:seconds
Last updated