Extracting an Ordinal's artist/creator from on-chain data #3663
-
Hi all, I am doing a research project on ordinals (I have published research on NFTs previously) and I am trying to figure out the information schema behind ordinals and how this could be extracted from on-chain data. Could someone please explain:
If you could please shed any light on that, I would greatly appreciate it. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi nosuic,
I hope this helps! |
Beta Was this translation helpful? Give feedback.
Hi @nosuic - yeah, that's a bit more complicated.
You can hit the content endpoint to read the script of an inscription:
curl.exe -s -H "Accept: application/json" "http://localhost/content/3fd1555a7d2debd7d578ed3b6589ba184629257c4580fe56c3863147837fc7f6i0"
Then, you'll have to have a script that can parse the output for other inscription ID's. So for example, the command above returns the script for the example:
<script src="/content/d91650a911e27c5402ffd45893b17023e0ede8cb6912aa11fee0bbb264de2bfdi0" data-p="991e410c58fcdc900553513743cdca3086049b7c5a03bce7f165873d0e3891f9i0,s,3,64,1,l">
You'd need to then parse that data to pull out the two inscription ID's - they are the recursive modules.