Solana specific currency transfer first and last for a given address

Returns transfers on Solana, where sender address is 3qgNhU…c5sE, receiver address is 3qgNhU…c5sE and currency is SOL: amount.

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

What it returns

Filters

The query

query MyQuery($address: String, $currency_id: String) {
  solana(network: solana) {
    sender_amount: transfers(
      senderAddress: {is: $address}
      currency: {is: $currency_id}
      transferType: {is: transfer}
    ) {
      amount(calculate: sum)
    }
    receiver_amount: transfers(
      receiverAddress: {is: $address}
      currency: {is: $currency_id}
      transferType: {is: transfer}
    ) {
      amount(calculate: sum)
    }
  }
}

Variables

{
  "currency_id": "SOL",
  "address": "3qgNhUwAgvZ5jDU6e7wwVw1pfuqqwXWsgrswx8r9c5sE"
}

Similar queries