track "TokenPurchased" event of SunPump

Returns the latest 10 events on Tron, where contract address is TTfvyr…7AAw and signature name is TokenPurchased: signature name, signature hash, transaction hash, topics hash, arguments name, bool, hex and 6 more fields.

By Akshat · saved 26 September 2024 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Tron(dataset: realtime) {
    Events(
      where: {Log: {Signature: {Name: {is: "TokenPurchased"}}}, Contract: {Address: {is: "TTfvyrAz86hbZk5iDpKD78pqLGgi8C7AAw"}}}
      limit: {count: 10}
      orderBy: {descending: Block_Time}
    ) {
      Log {
        Signature {
          Name
          SignatureHash
        }
      }
      Transaction {
        Hash
      }
      Topics {
        Hash
      }
      Arguments {
        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
          }
        }
      }
      Call {
        To
        From
      }
    }
  }
}

Similar queries