getPoolReserves

Returns one event on Ethereum, where log smart contract is 0x8B59…16bd and signature name is Sync: arguments name, string, value address, integer, big integer, hex and bool.

By Jose · saved 22 October 2024 · Bitquery API v2

What it returns

Filters

The query

query getPoolReserves($dataset: dataset_arg_enum!, $network: evm_network!, $pairAddress: String!) {
  EVM(dataset: $dataset, network: $network) {
    Events(
      limit: { count: 1 }
      orderBy: [{descending: Block_Time}, {descending: Transaction_Index}, {descending: Log_Index}]
      where: {Log: {SmartContract: {is: $pairAddress}, Signature: {Name: {is: "Sync"}}}}
    ) {
      Arguments {
        Name
        Value {
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
  }
}

Variables

{
  "dataset": "combined",
  "network": "eth",
  "pairAddress": "0x8B59bE2fC6Fccc2256Cc4841843A13ce29DA16bd"
}

Similar queries