Transactions
transactions type allows you to retrieve all the blockchain transactions from Ethereum Blockchain.
Here's an exmaple query that retrieves 10 latest transactions from Ethereum blockchain:
query {
ethereum (network: matic){
transactions(
date: { after: "2023-07-17T00:00:00Z" }
options: { desc: "block.timestamp.iso8601", limit: 10 }
) {
amount
block {
timestamp {
iso8601
}
}
currency {
address
name
symbol
}
feePayer
feeRatio
gas
gasCurrency {
address
name
symbol
}
gasPrice
gasValue
hash
nonce
sender {
address
annotation
}
to {
address
annotation
}
txType
}
}
}
Read this to learn more about our Transactions API.
Filtering Transactions
Transactions can be filtered using following arguments:
-
amount: Filter by amount of tokens transferred in a transaction. Available comparision operators arebetween,gt,gteq,in,is,lt,lteq,not,notIn. -
any: -
date: Filter by date on which transaction happened. Date should be in ISO8601-encoded datetime string. Ex, June 17th, 2023 will be2023-07-17T00:00:00Z. Available comparision operator areafter,before,between,in,is,not,notIn,since,tiil. -
feePayer: -
feeRatio: -
gasCurrency: Filter by currency used for gas. Available comparision operators arein,is,not,notIn. -
gasValue: Filter by gas value used in the transaction. Available comparision operators arebetween,gt,gteq,in,is,lt,lteq,not,notIn. -
height: Filter by height of block where transaction happened. Available comparision operators arebetween,gt,gteq,in,is,lt,lteq,not,notIn. -
options: Filter returned data by ordering, limiting and constrainting transaction data. Available fields:asc,ascByInteger,desc,descByInteger,limit,limitBy,offset -
success: -
time: Filter by time when transaction happened. Time should be in ISO8601-encoded datetime string. Ex, June 17th, 2023 will be2023-07-17T00:00:00Z. Available comparision operator areafter,before,between,in,is,not,notIn,since,tiil. -
txCreates: -
txHash: Filter by transaction hash of the transaction. Available comparision operators areis,in,not,notIn. -
txIndex: Filter by index of transaction in the block. Available comparision operators areis,in,not,notIn. -
txSender: Filter by address of transaction sender. Available comparision operators areis,in,not,notIn. -
txTo: Filter by address transaction is sent to. Available comparision operators areis,in,not,notIn. -
txType:
transactions field has following subfield which returns relevant information about blockchain transactions.
any:block: returns block details in which transaction happenedcount: returns aggregate count of transactionscountBigInt: returns aggregate count of transactions inBigIntformatcreates:currency: returns details of currency used in tranasctiondate: returns date of transactionerror: returns error valueexpression: performs arithematic operation and returns value of the operationfeePayer:feeRatio:gas: returns gas value consumed in transactiongasCurrency: returns gas currency used in a particular transactiongasPrice: returns gas price for a particular transactiongasValue: returns gas value consumed to perform a particular transactionhash: returns hash of a particular transactionindex: returns index of a transaction in a blockmaximum: returns maximum of selected measurable field oftransactionsminimum: returns minimum of selected measurable field oftransactionsnonce: returns nonce of a tranasctionsender: returns address of sender of a particular transactionsuccess: returns if transaction is success or notto: returns address to which of a particular transaction was senttxType: returns transaction type
Sign up on our GraphQL IDE and get your Access Token, Read our guide on getting started.