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

Add details of oldest ledger and latest ledger in getEvents RPC #231

Open
psheth9 opened this issue Jun 25, 2024 · 0 comments
Open

Add details of oldest ledger and latest ledger in getEvents RPC #231

psheth9 opened this issue Jun 25, 2024 · 0 comments
Assignees

Comments

@psheth9
Copy link
Contributor

psheth9 commented Jun 25, 2024

What problem does your feature solve?

Currently getTransaction RPC returns following information about oldest and latest ledger, it is a good idea to add similar information in getEvents RPC


{
  "jsonrpc": "2.0",
  "id": 8675309,
  "result": {
    "status": "SUCCESS",

 Ledger Range details:

    "latestLedger": 2540076,
    "latestLedgerCloseTime": "1700086333",
    "oldestLedger": 2538637,
    "oldestLedgerCloseTime": "1700078796",

    "applicationOrder": 1,
    "envelopeXdr": ""
    "resultXdr": "IrH9M/4dCVXaljeK6x1Ss20YWAAAAAA==",
    "resultMetaXdr": "AAAAAwAAAAAAAAAAAAAAABAAAAAAAAAAAAAAEAAAAAAAAAA
    "ledger": 2540064,
    "createdAt": "1700086268"
}

What would you like to see?

Following information in getEvents response

    "latestLedgerCloseTime": "1700086333",
    "oldestLedger": 2538637,
    "oldestLedgerCloseTime": "1700078796",

What alternatives are there?

@psheth9 psheth9 self-assigned this Jun 25, 2024
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

No branches or pull requests

1 participant