Feedbacks & QnA

Ask a Question
Back to all

Graphql API not returning events on Aptos mainnet

Hi guys, We have a deployed contract on Aptos Mainnet and we are trying to read events emitted by it not using an events handler, but via event::emit(). i.e. events marked by #[event]. The GQL query we are sending is;


query MyQuery { events( where: { type: { _eq: "0x39ddcd9e1a39fa14f25e3f9ec8a86074d05cc0881cbf667df8a6ee70942016fb::supply_logic::Supply" } } order_by: { transaction_version: desc } limit: 10 ) { type data } }


via the UI-based query editor. It is returning [] empty list. In fact, there have to be many events being emitted. Can you please have a look and let us know if there is an error in the query or in general you are not retrieving the events from such a contract. Also, we tried only using the account_address above and not the type, but same empty result. Thank you!