-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 self/
Endpoint for Accessing Inscription Metadata
#2855
Comments
self/
Endpoint for Accessing Inscription Metadataself/
Endpoint for Accessing Inscription Metadata
You can get inscriptionId out of the URL object. let inscriptionId = window.location.pathname.split('/')[2] See how I did it on the child endpoint here
Once we get the inscription recursive endpoint we will get information about an inscription. |
Interesting, with this solution, you would exit the Ordinals container and fetch the Inscription Id from outside. In essence, my search is for an Ordinals Native solution that works regardless of the use case. From what I understand in #2628, it involves a much broader scope. I'm a bit unclear on how to obtain the context directly from the Inscription there. My thought was, currently, we have the following routes:
Adding a
Example Response:
|
I am confused what your saying. The ordinal container is the routing of how its displayed
A lot of this can be accessed via the metadata endpoint or the new inscription endpoint in PR 2628. |
@a6b8 How would |
To the best of my knowledge, the InscriptionID cannot be determined before the Inscription is created. Later modification of the Inscription is not possible. Therefore, a way must be found to enable a The actual Inscription can/must include the following fields: 0 content To retrieve an Inscription, you use the route The real problem arises at the initial entry point. While the user triggers the request with knowledge of the InscriptionID, the returned content is unaware of it. However, the information can be accessed in certain places:
The My proposed solution: When creating the Inscription, the Creator could include a reference under An example Metadata could look like this:
If Derived from this, a distinction arises between:
The separation has many advantages, especially for validating individual sections. The content can also perform self-validation by using externally imported validation and determining whether all parameters adhere to a specific protocol standard. |
Modifying the content is not a good idea, since there might be false positives. I think to explore this feature, there would need to be a context where getting the inscription ID from the URL doesn't work. |
There is another way to determine inscription self ID. Unfortunately it has its own drawback: the inscription need to have a parent. The parent inscription ID is known in advance as well as its child-number. In this case one can get its inscription id like this:
here is working example: https://ordinals.com/inscription/b6fd036e1ec8e57f09b1a7a7e0dd68f905241ccf867820bd9a38b862c6d92685i0 |
I'm currently thinking about the new interaction possibilities created by the new metadata standard. The existing API can import metadata using
/r/metadata/<INSCRIPTION_ID>
and then decrypt it with CBOR.But to my knowledge, there's currently no way for the Inscription Block (0) to read data from its own metadata (5). This is because it's not possible to determine the Inscription Id. It would be interesting to have a
self/
endpoint that provides basic information about the inscriptionId and its creation block height.This would help parameterize generative art using metadata. It could also define time periods for Inscription based on block height.
The text was updated successfully, but these errors were encountered: