Contract Events

Start querying contract events

For contract events, there are n queries, all with the same body:

  • eventByTopic

  • eventByContractId

  • eventByContractIds

  • allContractEvents

Below is an example of using eventByContractId :

query MyQuery {
  eventByContractId(searchedContractId: "CONTRACT_ID") {
    nodes {
      contractId
      data
      topic1
      topic2
      topic3
      topic4
      txInfoByTx {
        ledgerByLedger {
          closeTime
          sequence
        }
        memo
        txHash
        opCount
        fee
      }
    }
  }
}

We suggest fiddling with the GraphiQL endpoint (see Endpoints) to build the most appropriate queries for your needs.

Last updated

#17:

Change request updated