Trias explorer block
/api/all_blocks
Get block list data
Request method
GET
Request address
Request Parameters
chain
chain type(default)
string
default
no
size
request data size per page
int
50
no
page
request pagination
int
1
no
Return Data Description
Trias return data
code
int
status code, 200 for success
total_size
int
sum of block sizes
page
int
pagination
total_page
int
total pages
return_data
list dict
block transaction list
Block data
hash
string
block hash
miner
string
miner address
number
int
block number
transactionsCount
int
transaction count
size
int
block size
blockReward
0
block reward
timestamp
int
block timestamp
credit_value
list
credit value list information
gasLimit
int
block gas limit size
gasUsed
int
block gas used size
time
string
transaction time
avgFee
int
average gas
gas_used
int
gas used size
gas_Rate
0
block reward
blockcredit
0
block credit
Return Data Example
Trias return data example
/api/block_info
Get block basic information
Request method
GET
Request address
Request Parameters
chain
chain type(default)
string
default
no
block_hash
block hash
string
no
yes
Return Data Description
Trias return data
code
int
status code, 200 for success
return_data
dict
block details
Block details
number
int
block number
size
int
block size
timestamp
int
block timestamp
difficulty
string
block diffcultly value,hexstring
nonce
string
block nonce value
parentHash
string
parent block hash
nextHash
string
next block hash
miner
string
block miner
gasLimit
int
block gasLimit
gas_used
int
block gasUsed
credit_value
list dict
blokc credit value
total_fee
int
block transaction totle fee
is_computed
bool
is computed total_fee
blockReward
int
block award, field not used
stateRoot
string
block state root
hash
string
block hash
confirmed
bool
confirmed state
time
string
block time
confirmations
int
confirmations number
nextHash
string
next hash
gas_used
int
block gasUsed value
Timestamp
string
block timesatmp
status
string
confirmed or not
blockcredit
0
block credit
Return Data Example
Trias return data example
/api/block_transactions/
Return block details
Request method
GET
Request address
Request Parameters
chain
chain type(default)
string
default
no
block_hash
block hash
string
no
yes
size
request data size per page
int
50
no
page
request pagination
int
1
no
Return Data Description
Trias return data
code
int
status code, 200 for success
total_size
int
sum of block sizes
page
int
pagination
total_page
int
total pages
contract_count
int
contracts amount
address_transactions
int
transaction address amount
return_data
list dict
block transaction list
Block transaction
id
int
Database primary key (not useful for business scenarios)
blockHash
string
transaction block hash
hash
string
transaction hash
to
string
transaction to address
gasPrice
int
transaction gas price
source
string
transaction from address
value
int
transaction value
gas
int
transaction gas
fee
int
transaction fee
blockNumber
int
block number
status
string
execution status
contract_label
bool
includes contract transactions
timestamp
int
transaction timestamp
tokenamount
string
transfer token amount
method
string
execution contract methods
Return Data Example
Trias return data example
Last updated