Liquidity Events limit 1

Returns the latest event on Ethereum, where log smart contract is 0x4585…20c0, 0x9a77…7d16 or 2 more, transaction from is 0x8797…Ccd3 and signature name is Mint or Burn: block time, block number, transaction hash, signature name, smart contract, arguments name, string and 5 more fields.

By lukas · saved 4 December 2024 · run 4 times · Bitquery API v2

What it returns

Filters

The query

query getLiquidityEvents($dataset: dataset_arg_enum!, $network: evm_network!, $pools: [String!], $wallet: String!, $since: DateTime!, $till: DateTime!, $limit: Int!) {
  EVM(dataset: $dataset, network: $network) {
    Events(
      orderBy: {descending: Block_Time}
      limit: {count: $limit}
      where: {Log: {SmartContract: {in: $pools}, Signature: {Name: {in: ["Mint", "Burn"]}}}, Transaction: {From: {is: $wallet}}, Block: {Time: {since: $since, till: $till}}}
    ) {
      Block {
        Time
        Number
      }
      Transaction {
        Hash
      }
      Log {
        Signature {
          Name
        }
        SmartContract
      }
      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": "archive",
  "network": "eth",
  "pools": [
    "0x4585fe77225b41b697c938b018e2ac67ac5a20c0",
    "0x9a772018fbd77fcd2d25657e5c547baff3fd7d16",
    "0x51c72848c68a965f66fa7a88855f9f7784502a7f",
    "0x56534741cd8b152df6d48adf7ac51f75169a83b2"
  ],
  "wallet": "0x8797C39A9aF250c4c8B71E7E8bf144a840EcCcd3",
  "since": "2024-11-04T17:58:22Z",
  "till": "2024-12-04T17:58:22Z",
  "limit": 1
}

Similar queries