TokenPurchased on Sunpump

Tron sunpump first time buy event

Returns 10 events on Tron, where signature name is TokenPurchased: signature name, signature hash, transaction hash, timestamp, topics hash, arguments name, integer and 7 more fields.

By Divyasshree · saved 6 September 2024 · run 7 times · Bitquery API v2

What it returns

Filters

The query

# Historical data
#   This query uses the realtime dataset (the default), which holds only a
#   recent window - hours to days depending on the cube.
#
#   For older data add a dataset to the top-level element:
#
#     Tron(dataset: combined)
#
#     archive   full history
#     combined  archive + realtime in one result
#
#   Archive and combined need the historical data add-on:
#   https://bitquery.io/pricing
#
# Datasets:  https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#

{
  Tron {
    Events(
      where: {Log: {Signature: {Name: {is: "TokenPurchased"}}}}
      limit: {count: 10}
    ) {
      Log {
        Signature {
          Name
          SignatureHash
        }
      }
      Transaction {
        Hash
        Timestamp
      }
      Topics {
        Hash
      }
      Arguments {
        Name
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... 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
          }
        }
      }
      Call {
        From
        To
      }
    }
  }
}

Similar queries