Transaction
Ethereum transaction
You can use this query to learn more about the Transaction type of the Sismo API.
query {
__type(name: "Transaction") {
name
kind
description
fields {
name
description
}
}
}
Query stats for one transaction
Use this query to get stats for a specific transaction hash by it's id
and network
.
query {
transaction(
network: gnosis,
id: "0x00031ef7e167cecd4f3429c5e50d664eb54ebf46eef752662c82684fa60545d2"
) {
id
from
gasPrice
gasUsed
gasFee
timestamp
}
}
Query stats for a list of transactions
Use this query to get stats for a list of transactions. You can use common parameters to filters them. The tab Schema below provides more details.
query {
transactions(
first: 5,
orderBy: timestamp,
orderDirection: desc,
where: { network: polygon }
) {
id
from
gasPrice
gasUsed
gasFee
timestamp
}
}
Examples
Get the 10 most expensive transaction on gnosis
query {
transactions(
first: 10,
orderBy: gasFee,
orderDirection: desc,
where: { network: gnosis }
) {
id
from
gasPrice
gasUsed
timestamp
}
}
Last updated