When I’m trying querying Gas value, gas price and gas for each transaction on BSC network it’s always 0. Why?
Please share your query.
For example this:
query ($network: EthereumNetwork!, $address: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
ethereum(network: $network) {
transfers(
options: {desc: "block.timestamp.time", asc: "currency.symbol", limit: $limit, offset: $offset}
date: {since: $from, till: $till}
amount: {gt: 0}
sender: {is: $address}
) {
block {
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
height
}
address: receiver {
address
annotation
}
currency {
address
symbol
}
amount
transaction {
hash
}
external
gasValue
}
}
}
"limit": 10,
"offset": 0,
"network": "ethereum",
"address": "0xb16c043ec6c5df5a5902d18877a2018e52c8a240",
"currency": "",
"from": "2021-12-12",
"till": "2022-01-10T23:59:59",
"dateFormat": "%Y-%m-%d"
Are you sure you want Ethereum network?
Yes this is a bug transfer API not showing gas data. However transaction API. I will notify dev team.
Devs conveyed they will implement this later, Meanwhile you can do two APIs.
1st get transfer
then get transaction API to get gas related values.