Skip to content

Extracting an Ordinal's artist/creator from on-chain data #3663

Answered by cryptoni9n
nosuic asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@cryptoni9n
Comment options

@nosuic
Comment options

@nosuic
Comment options

@cryptoni9n
Comment options

Answer selected by nosuic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants