EVM-based Blockchain Indexer, with historical data query & real-time notification support 😎
I noticed sometimes during chain reorganization previous entries from DB needs to be removed and new ones are required to be inserted, during that due to not using cascading removal of transactions/ events from respective DB tables for removed block header(s), conflict used to rise.
This release includes only one PR #64 , which attempts to address this problem.
ette
deployment{"block", "transaction", "event"}
, serving on single websocket connectionette
& they can now subscribe to N many topicsBefore 🙂 | Now 😉 |
---|---|
2.6G RAM with ~99.8% CPU | 15M RAM with ~2% CPU |
systemd
EtteMode = 2
/v1/graphql
to be scanned by rate limiter, using APIKey providedIf you're running
ette
on production, you should definitely update to this version.
Now ette
can help you in fetching certain event log given block number/ hash & log index in block. Both REST & GraphQL APIs support it.
type Query {
eventByBlockHashAndLogIndex(hash: String!, index: String!): Event!
eventByBlockNumberAndLogIndex(number: String!, index: String!): Event!
}
In response you'll receive 👇
type Event {
origin: String!
index: String!
topics: [String!]!
data: String!
txHash: String!
blockHash: String!
}
And as it's also available using GraphQL API, you get to choose what are specific fields you want to receive in response.
BlockConfirmations
field ), it can be set, how many block confirmations are required before finally persisting blocks in DB