solana query need to optimise

Returns 10 transfers on Solana, where sender address is 3uTzTX…dzwC, receiver address is C5v68q…8Z8y and currency is EPjFWd…Dt1v: transaction signature, iso8601, amount, currency address, decimals, currency name, currency symbol and 7 more fields.

By gaurav · saved 8 June 2022 · run 9 times · Bitquery API v1

What it returns

Filters

The query

query MyQuery($sender: String, $receiver: String, $currency_id: String, $since: ISO8601DateTime, $till: ISO8601DateTime, $limit: Int) {
  solana(network: solana) {
    transfers(
      senderAddress: {is: $sender}
      receiverAddress: {is: $receiver}
      currency: {is: $currency_id}
      options: {limit: $limit}
      time: {since: $since, till: $till}
      success: {is: true}
      transferType: {is: transfer}
    ) {
      hash: transaction {
        hash: signature
      }
      time: block {
        timestamp {
          iso8601
        }
      }
      amount
      currency {
        address
        decimals
        name
        symbol
        tokenId
      }
      sender {
        address
        mintAccount
        type
      }
      receiver {
        address
        mintAccount
        type
      }
    }
  }
}

Variables

{
  "sender": "3uTzTX5GBSfbW7eM9R9k95H7Txe32Qw3Z25MtyD2dzwC",
  "receiver": "C5v68qSzDdGeRcs556YoEMJNsp8JiYEiEhw2hVUR8Z8y",
  "currency_id": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "limit": 10,
  "since": "2022-01-04T00:00:00",
  "till": "2022-06-05T00:00:00"
}

Similar queries