base query

Returns one transfer on Base, where currency smart contract is 0x8a42…fb55, transfer sender is 0xaf22…0619 and currency smart contract is 0xaf22…0619, sorted by block time: transfer amount, sender, receiver, transaction hash, block time, currency symbol and currency name.

By gaurav · saved 9 December 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $pair: String!, $token: String!, $null: String!) {
  EVM(network: $network, dataset: archive) {
    First_Trade: Transfers(
      where: {Transfer: {Currency: {SmartContract: {is: $token}}, Sender: {is: $pair}}}
      limit: {count: 1}
      orderBy: {ascending: Block_Time}
    ) {
      Transfer {
        Amount
        Sender
        Receiver
      }
      Transaction {
        Hash
      }
      Block {
        Time
      }
    }
    LP_Mint: Transfers(
      where: {Transfer: {Currency: {SmartContract: {is: $pair}}, Sender: {is: $null}, Receiver: {not: $null}}}
      limit: {count: 1}
      orderBy: {ascending: Block_Time}
    ) {
      Transfer {
        Amount
        Sender
        Receiver
      }
      Transaction {
        Hash
      }
      Block {
        Time
      }
    }
    Token_Mint: Transfers(
      where: {Transfer: {Currency: {SmartContract: {is: $token}}, Sender: {is: $null}, Receiver: {not: $null}}}
      limit: {count: 1}
      orderBy: {ascending: Block_Time}
    ) {
      Transfer {
        Amount
        Sender
        Receiver
        Currency {
          Symbol
          Name
        }
      }
      Transaction {
        Hash
      }
      Block {
        Time
      }
    }
  }
}

Variables

{
  "network": "base",
  "null": "0x0000000000000000000000000000000000000000",
  "pair": "0xaf2271b9dfa61363abac887ff65da2416dd30619",
  "token": "0x8a4252d94176308817ed81572ec9b11618d8fb55"
}

Similar queries