Contract Data Entry Updates

Start querying contract events

For contract data entry updates, there are 3 queries, all with the same body:

  • entryUpdateByContractId

  • entryUpdateByContractIdAndKey

  • allEntryUpdates

For example, to get the last 10 entries of a certain contract:

query MyQuery {
  entryUpdateByContractId(contract: "CONTRACT_ID", lastN: 10) {
    nodes {
      contractId
      keyXdr
      txInfoByTx {
        txHash
        memo
        opCount
        fee
        ledgerByLedger {
          closeTime
          sequence
        }
      }
      valueXdr
    }
  }
}

Last updated