tron query for block height
Returns transactions and contracts on Tron: block height, timestamp time, hash, result, index, internal transactions count, success and 15 more fields.
What it returns
- block height
- timestamp time
- hash
- result
- index
- internal transactions count
- success
- fee
- fee limit
- net fee
- energy fee
- energy usage total
- net usage
- tx owner address
- annotation
- currency symbol
- currency address
- token ID
- token type
- tx hash
- contract type
- amount
The query
query ($fromBlockHeight: Int!, $toBlockHeight: Int!) {
tron {
transactions {
block(height: {gteq: $fromBlockHeight, lt: $toBlockHeight}) {
height
timestamp {
time
}
}
hash
result
index
internalTransactionsCount
success
fee
feeLimit
netFee
energyFee
energyUsageTotal
netUsage
}
contracts {
block(height: {gteq: $fromBlockHeight, lt: $toBlockHeight}) {
height
timestamp {
time
}
}
txOwner {
address
annotation
}
currency {
symbol
address
tokenId
tokenType
}
txHash
contractType
amount
}
}
}
Variables
{
"fromBlockHeight": 1400000,
"toBlockHeight": 1400010,
"network": "tron"
}
Similar queries
- AccountPermissionUpdateContract · Tron · Transactions
- tron activity · Tron · Transfers
- chen du issue with working tx hash · Tron · Transactions
- chen du issue query · Tron · Transactions
- delegate Tron · Tron · Transactions