Skip to main content

Fantom Transactions API

Endpoint

Fantom GraphQL queries are served at https://graphql.bitquery.io. Pass network: fantom to the ethereum field.

transactions type allows you to retrieve all the blockchain transactions from Fantom Blockchain.

Here's an example query that retrieves 10 latest transactions from Fantom blockchain:

query {
ethereum(network: fantom) {
transactions(
date: { after: "2026-11-20T00:00:00Z" }
options: { desc: "block.timestamp.iso8601", limit: 10 }
) {
amount
block {
timestamp {
iso8601
}
}
currency {
address
name
symbol
}
gas
gasCurrency {
address
name
symbol
}
gasPrice
gasValue
hash
nonce
sender {
address
annotation
}
to {
address
annotation
}
}
}
}
Filtering Transactions

Transactions can be filtered using following arguments:

  • amount: Filter by amount of tokens transferred in a transaction. Available comparison operators are between, gt, gteq, in, is, lt, lteq, not, notIn.

  • any: A catch-all filter (OR logic) that can be used to select blocks that match any of the other filters.

  • date: Filter by date on which transaction happened. Date should be in ISO8601-encoded datetime string. Ex, June 17th, 2023 will be 2023-07-17T00:00:00Z. Available comparison operator are after, before, between, in, is, not, notIn, since, till.

  • feePayer:

  • feeRatio:

  • gasCurrency: Filter by currency used for gas. Available comparison operators are in, is, not, notIn.

  • gasValue: Filter by gas value used in the transaction. Available comparison operators are between, gt, gteq, in, is, lt, lteq, not, notIn.

  • height: Filter by height of block where transaction happened. Available comparison operators are between, 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 be 2023-07-17T00:00:00Z. Available comparison operator are after, before, between, in, is, not, notIn, since, till.

  • txCreates:

  • txHash: Filter by transaction hash of the transaction. Available comparison operators are is, in, not, notIn.

  • txIndex: Filter by index of transaction in the block. Available comparison operators are is, in, not, notIn.

  • txSender: Filter by address of transaction sender. Available comparison operators are is, in, not, notIn.

  • txTo: Filter by address transaction is sent to. Available comparison operators are is, in, not, notIn.

transactions field has following subfield which returns relevant information about blockchain transactions.

  • any:
  • block: returns block details in which transaction happened
  • count: returns aggregate count of transactions
  • countBigInt: returns aggregate count of transactions in BigInt format
  • creates:
  • currency: returns details of currency used in tranasction
  • date: returns date of transaction
  • error: returns error value
  • expression: performs arithmetic operation and returns value of the operation
  • feePayer:
  • feeRatio:
  • gas: returns gas value consumed in transaction
  • gasCurrency: returns gas currency used in a particular transaction
  • gasPrice: returns gas price for a particular transaction
  • gasValue: returns gas value consumed to perform a particular transaction
  • hash: returns hash of a particular transaction
  • index: returns index of a transaction in a block
  • maximum: returns maximum of selected measurable field of transactions
  • minimum: returns minimum of selected measurable field of transactions
  • nonce: returns nonce of a tranasction
  • sender: returns address of sender of a particular transaction
  • success: returns if transaction is success or not
  • to: returns address to which of a particular transaction was sent
  • txType: returns transaction type
Build with Bitquery

Ready to run this in production?

Get an API key and run these queries in minutes, or talk to us about plans and enterprise delivery.