You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The easiest way to get all of the historical events for an account is to use the provided Hasura indexer, specifically the events query. Unfortunately, the node is not always a reliable source for events as events and other ledger state can be pruned over time. To learn more see the section on aptos.dev on viewing current and historical state
TS SDK
The TS SDK provides an implementation that queries Aptos' Hasura Indexer mentioned above for events. See this github link for more information.
Example
Here's an example of how you would get all the events associated with a given account.
See the Hasura link for more details on this example
indexerQuestions related to indexerseventQuestions related to on-chain events
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Solution
Indexer
The easiest way to get all of the historical events for an account is to use the provided Hasura indexer, specifically the
events
query. Unfortunately, the node is not always a reliable source for events as events and other ledger state can be pruned over time. To learn more see the section on aptos.dev on viewing current and historical stateTS SDK
The TS SDK provides an implementation that queries Aptos' Hasura Indexer mentioned above for
events
. See this github link for more information.Example
Here's an example of how you would get all the events associated with a given account.
See the Hasura link for more details on this example
This returns a response like so:
For more information on getting events, see the section on API access for historical events on aptos.dev
Beta Was this translation helpful? Give feedback.
All reactions