Trias explorer apitotal
/api/all_blocks
Get block list data
Request method
GET
Request address
Request Parameters
parameter | description | type | default | required |
---|---|---|---|---|
chain | chain type(default/tm) | string | default | no |
size | request data size per page | int | 50 | no |
page | request pagination | int | 1 | no |
Return Data Description
Trias return data
field_name | type | description |
---|---|---|
code | int | status code, 200 for success |
total_size | int | block total size |
page | int | pagination |
total_page | int | total pages |
return_data | list dict | block data list |
Block data
field_name | type | description |
---|---|---|
number | int | block number |
size | int | block size |
timestamp | int | block timestamp |
hash | string | block hash |
blockReward | 0 | block award, field not used |
transactionsCount | int | transactions count |
credit_max | int | credit max |
time | string | block time |
avgFee | double | transaction avgFee (currently constant: 0.00332) |
Trias return data example
/api/block_info
Get block basic information
Request method
GET
Request address
Request Parameters
parameter | description | type | default | required |
---|---|---|---|---|
chain | chain type(default/tm) | string | default | no |
block_hash | block hash | string | no | yes |
Return Data Description
Trias return data
field_name | type | description |
---|---|---|
code | int | status code, 200 for success |
return_data | dict | block details |
Block details
field_name | type | description |
---|---|---|
number | int | block number |
size | int | block size |
timestamp | int | block timestamp |
difficulty | string | block diffcultly value,hexstring |
nonce | string | block nonce |
parentHash | string | parent block hash |
nextHash | string | next block hash |
miner | string | block miner |
gasLimit | int | block gasLimit |
gas_used | int | block gasUsed |
blockcredit | list dict | block credit |
total_fee | int | block transaction total fee |
is_computed | bool | is computed total_fee |
blockReward | 0 | block award, field not used |
transactionsCount | int | transaction count |
time | string | transaction time |
confirmations | int | latest block confirmation, >0 means no =0 is the latest |
Return Data Example
Trias return data example
/api/block_transactions
Get block details
Request method
GET
Request address
Request Parameters
Parameter | description | type | default | required |
---|---|---|---|---|
chain | chain type(default/tm) | 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
field_name | type | description |
---|---|---|
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 data list |
Block transaction
field_name | type | description |
---|---|---|
id | int | Database primary key (not useful for business scenarios) |
blockHash | string | transaction blockHash |
source | string | transaction from address |
to | string | transaction to address |
gas | int | transaction gas |
gasPrice | int | transaction gas price |
nonce | int | transaction nonce |
hash | string | transaction hash |
transactionIndex | int | transaction block Index |
value | int | transaction value |
v | int | transaction signature v field value |
r | string | transaction signature r field value |
s | string | transaction signature s field value |
timestamp | int | transaction timesatmp |
tx_str | string | transaction input string |
type1 | int | transaction type |
fee | int | transaction fee |
Return Data Example
Trias return data example
api/all_transactions/
Get all block transaction data
Request method
GET
Request address
Request Parameters
parameter | description | type | default | required |
---|---|---|---|---|
chain | chain type(default/tm) | string | default | no |
size | request data size per page | int | 50 | no |
page | request pagination | int | 1 | no |
Return Data Description
Trias return data
Ffeld_name | type | description |
---|---|---|
code | int | status code, 200 for success |
total_size | int | block total sizes |
page | int | pagination |
total_page | int | total pages |
return_data | list dict | block data list |
Block transaction
field_name | type | description |
---|---|---|
blockHash | string | transaction block hash |
blockNumber | int | transaction block number |
source | string | transaction source |
to | string | transaction to address |
hash | string | transaction hash |
value | string | transaction value |
time | string | transaction time |
tx_str | string | transaction input field |
type | int | transaction type |
Return Data Example
Trias return data example
api/transaction_info/
Get transaction details
Request method
GET
Request address
Request Parameters
parameters | description | type | default | Must |
---|---|---|---|---|
chain | chain type(default/tm) | string | default | no |
txhash | transaction hash | string | no | yes |
Return Data Description
Trias return data
field_name | type | description |
---|---|---|
code | int | status code, 200 for success |
return_data | dict | transaction details |
Transaction details
field_name | type | description |
---|---|---|
blockHash | string | transaction blockHash |
source | string | transaction from address |
to | string | transaction to address |
gas | int | transaction gas |
gasPrice | int | transaction gas price |
nonce | int | transaction nonce |
hash | string | transaction hash |
transactionIndex | int | transaction block Index |
value | int | transaction value |
v | int | transaction signature v field value |
r | string | transaction signature r field value |
s | string | transaction signature s field value |
gasUsed | int | gas used size |
timestamp | int | transaction timesatmp |
tx_str | string | transaction input string |
type1 | int | transaction type |
fee | int | transaction fee |
gasLimit | int | transaction gas limit |
time | string | transaction time |
tokenamount | string | transfer token amount |
gasamount | string | transfer native token amount |
method | string | contract method |
tokenname | string | token name |
status | string | status |
transfer_list | obj | contract transfer list |
gas_rate | string | transaction gas rate |
to_address | string | token contrat address |
Return Data Example
Trias return data example
Last updated