Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recent transactions and timestamps #1218

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

agouin
Copy link
Contributor

@agouin agouin commented Dec 30, 2022

Motivation

Optimize explorer queries and pagination, specifically fetching most recent transactions for both chain and an individual account.

Adds timestamp_usecs to TransactionView and EventView so that timestamps can be rendered in explorer for transactions and events without extra effort on explorer side.

Adds get_recent_transactions and get_recent_account_transactions RPC methods to fetch most recent transactions for chain and account.

Test Plan

Tested with explorer changes agouin/0l-explorer#6

@agouin agouin changed the title Andrew/get recent transactions recent transactions and timestamps Dec 30, 2022
@0o-de-lally
Copy link
Collaborator

This looks quite helpful. Can you try rebasing to see if the tests pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants