transactions

The transactions field accepts parameters to filter the transactions we want to retrieve. Here's what each part does: transactionType: {}: This specifies that we want transactions of any type (buy, sell, transfer, etc.). By passing an empty object {}, we're not applying any additional filtering based on transaction type. any: { currency: { is: "BNB" }, date: { since: "2022-01-01", till: "2023-12-31" } }: This specifies additional filtering criteria for the transactions we want to fetch. Here, we are filtering transactions involving the BNB (Binance Coin) currency (currency: { is: "BNB" }) and occurring within the date range from January 1, 2022, to December 31, 2023. Inside the transactions field, we're requesting the count, value, and date fields for each transaction. This will provide us with information about the number of transactions (count), the total value of transactions (value), and the date of each transaction (date).

By GAUTAM KUMAR · saved 2 June 2024 · run 41 times · Bitquery API v1

What it returns

Filters

The query

{
  binance {
    transactions(
      transactionType: {}
      any: { currency: { is: "BNB" }, date: { since: "2022-01-01", till: "2023-12-31" } }
    ) {
      count
      date {
        date
      }
    }
  }
}

Similar queries