ord icon indicating copy to clipboard operation
ord copied to clipboard

Recursive Runes Endpoint Output

Open elocremarc opened this issue 10 months ago • 4 comments

/r/output/:output

Its time for the output endpoint

image

Example of runes with an inscription https://ordinals.com/output/b84a1dd3cfb9ebb26f240afe7f17bf73f8a1b6cc9774ea26e360fbe077a26669:0

I just proxied the current /output response to play around with it. What do we want to keep or remove from the fields? We want at least runes inscriptions. This allows artist to choose if they want to activate an inscription via a rune or via an inscription on the output.

Another cool thing to have would be sat ranges. Then you can start activating inscriptions based on sats in the output if you don't want to activate an inscription with runes or inscriptions. Output gives you all 3 options activating inscriptions with sats, inscriptions or runes.

elocremarc avatar Apr 22 '24 16:04 elocremarc

this is amazing, LFG

PirateCodeWeb3 avatar Apr 23 '24 00:04 PirateCodeWeb3

One of the reasons I had used /r/inscription/:inscription_id/rune/:rune_id in #3538 over output was so that the recursive endpoints would not be ephemeral. Output endpoints would probably also need to be paginated, scoping by rune_id avoids that.

lifofifoX avatar Apr 23 '24 05:04 lifofifoX

@devords Yeah we probably need to paginate this in some way. I do like being able to target one rune. However why force the user to know the rune id? This way you don't even need to know about the runes held. This means that an inscription could still be compatible to future runes. Also this would give us access to more than just runes like the inscriptions on the output as well as the sat ranges. I think the sat ranges are far super interesting and already have fun uses for it.

Could there be a way to combine both ours for different use cases? The sat endpoint has the /at as well as the paginated one. Output is something I have wanted before we even started on these endpoints. heres me talking about output in your last recursive PR https://github.com/ordinals/ord/pull/2628#issuecomment-1791929442

elocremarc avatar Apr 23 '24 21:04 elocremarc

I was able to produce the output with both an inscription and rune. However, it looks like the inscription and rune is now soulbound. It will not let me separate. I was thinking this could be a cool solution for upcoming projects to include runes with the inscriptions when someone goes to "mint". Kinda like a package deal.

https://signet.ordstuff.info/output/e00ef72ec8aea33553cce8b41bfc0c7cbf7044563c24b02d11b21eadfc6da538:0 image

alexamizz avatar Apr 27 '24 02:04 alexamizz