base query first transaction

Returns transfers on Base, where currency smart contract is 0x8a42…fb55, transfer sender is 0xaf22…0619 and currency smart contract is 0xaf22…0619: block time.

By gaurav · saved 9 December 2024 · 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}}}
    ) {
      Block {
        Time(minimum: Block_Time)
      }
    }
    LP_Mint: Transfers(
      where: {Transfer: {Currency: {SmartContract: {is: $pair}}, Sender: {is: $null}, Receiver: {not: $null}}}
    ) {
      Block {
        Time(minimum: Block_Time)
      }
    }
    Token_Mint: Transfers(
      where: {Transfer: {Currency: {SmartContract: {is: $token}}, Sender: {is: $null}, Receiver: {not: $null}}}
    ) {
      Block {
        Time(minimum: Block_Time)
      }
    }
  }
}

Variables

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

Similar queries