Skip to content

Code blocks on RPC getLedgerEntries page are confusing #1385

Closed

Description

@leighmcculloch

Some code blocks on the getLedgerEntries RPC have no context as to which SDK they're using:

Screenshot 2025-03-08 at 10 34 38 pm

And some code examples start with Python, then continue with JS/TS, where the first code sample is labeled as Python because of the tab, then the second one is JS/TS and the two depend on each other which isn't possible because the JS can't call the Python:

Screen.Recording.2025-03-08.at.10.30.21.pm.mp4

Originally posted by @leighmcculloch in #1060 (comment)

cc @Shaptic

Activity

  1. self-assigned this
    on Mar 10, 2025
  2. added
    bug
    on Mar 10, 2025
  3. changed the title [-]Code blocks on RPC `getLedgerEntries` page[/-] [+]Code blocks on RPC `getLedgerEntries` page are confusing[/+] on Mar 11, 2025
  4. leighmcculloch commented on Mar 17, 2025

    @leighmcculloch
    MemberAuthor

    This issue was closed by #1429, but the code blocks are still confusing, because there's a multi-part example that starts with python, and then transitions to TypeScript, showing the TypeScript code calling the Python code.

    Worth adding the remaining Python examples I think?

  5. Shaptic commented on Mar 17, 2025

    @Shaptic
    Contributor

    Agreed, opened #1431 to cover this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugrpc-sdk-scrum

Type

No type

Projects

  • Status
    No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions