Tron logs query example

Returns 200 events on Tron, sorted by block number: enter index, exit index, log after call index, pc, log index, smart contract, signature signature and 18 more fields.

By gaurav · saved 3 February 2026 · Bitquery API v2

What it returns

The query

query TronLogsByBlockRange {
  Tron {
    Events(
      where: {Transaction: {Result: {Success: true}}}
      limit: {count: 200}
      orderBy: {ascending: Block_Number}
    ) {
      Log {
        EnterIndex
        ExitIndex
        LogAfterCallIndex
        Pc
        Index
        SmartContract
        Signature {
          Signature
          Name
          SignatureHash
          Type
        }
      }
      Topics {
        Hash
      }
      Arguments {
        Name
        Type
        Value {
          __typename
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
      Transaction {
        Hash
        Timestamp
        FeePayer
      }
      Block {
        Number
        Time
        Hash
      }
    }
  }
}

Similar queries