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

Clarify the use of order_by versus order in the inscription requests #261

Open
sabbyanandan opened this issue Nov 2, 2023 · 0 comments
Open
Labels
documentation Improvements or additions to documentation

Comments

@sabbyanandan
Copy link

While exploring https://docs.hiro.so/ordinals/list-of-inscriptions, as a user, I see order_by and order, and they both appear similar in functionality, but they aren't.

Moreover, the OpenAPI documentation for order_by reads as "Parameter to order results by". I don't know what parameters are acceptable.

When looking at the API calls from the Ordinals Explorer (see below), I notice order_by=genesis_block_height as an example, but it is not documented in the spec, nor can I find the list of supported parameters.

https://api.hiro.so/ordinals/v1/inscriptions?limit=20&offset=0&order=desc&order_by=genesis_block_height&rarity=rare

Is this all the genesis-typed parameters or others are possible?

@rafaelcr rafaelcr added the documentation Improvements or additions to documentation label Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants