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

RPC - sort_keys documentation inconsistencies und clarifications #419

Open
KryptomineCH opened this issue Nov 10, 2023 · 0 comments
Open

Comments

@KryptomineCH
Copy link
Contributor

KryptomineCH commented Nov 10, 2023

Several Endpoints such as get_all_offers have a property sort_key

What is the default sort_key and how do I know which sort keys are available/refer to which properties?

At the time I'm particularly interested for the endpoints get_all_offers and get_transactions


Notably the documentation on get_all_offers shows its of type string. The documentation on get_transactions shows its of type number


I tried to test a little and it seems either the sort key is not implemented or it is not trivial. Or the type is not long/int:

{{
  "offers": null,
  "trade_records": null,
  "success": false,
  "error": "No known sort 0"
}}

string is not trivial either:

GetAllOffers_RPC getAllOffers_RPC = new GetAllOffers_RPC(
    start: heightInfo.ImportedOfferHeight.SequenceHeight,
    end: long.MaxValue,
    exclude_my_offers: false,
    exclude_taken_offers: false,
    include_completed: true,
    sort_key: null,//"created_at_time",
    reverse: true,
    file_contents: true) ;
{{
  "offers": null,
  "trade_records": null,
  "success": false,
  "error": "No known sort created_at_time"
}}
@KryptomineCH KryptomineCH changed the title RPC - sort_keys RPC - sort_keys documentation inconsistencies und clarifications Nov 10, 2023
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