get fee for particular pool on uniswap v3 on ethereum using streaming api

Returns 10 calls on Ethereum, where call to is 0x1F98…F984 and signature name is createPool: arguments name, arguments type, bool, hex, big integer, value address, string and 7 more fields.

By Nikhil · saved 25 October 2023 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    Calls(
      limit: {count: 10}
      where: {
        Call: {
          To: {
            is: "0x1F98431c8aD98523631AE4a59f267346ea31F984"
          }, 
          Signature: {
            Name: {
              is: "createPool"
            }
          }
        }, 
      # To get fees for particular pool you can uncomment following and
      # change the address to the pool you need 
        Returns: {
          includes: {
            Name: {
              is: "pool"
            }, 
            Value: {
              Address: {
                is: "0xe5c412e9be83a64d436bbd6b160730ec5bd5909c"
              }
            }
          }
        }
      }
    ) {
      Arguments {
        Name
        Type
        Value {
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
        }
        Path {
          Name
          Type
        }
        Index
      }
      Call {
        Signature {
          Name
          Parsed
        }
      }
      Returns {
        Name
        Value {
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
        }
      }
    }
  }
}

Similar queries