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

Add r/inscriptions/block/<BLOCK_HEIGHT> to retrieve inscription ID's #3765

Open
Blockamoto opened this issue May 17, 2024 · 8 comments
Open

Comments

@Blockamoto
Copy link

Let's mirror the explorer feature of retrieving inscriptions from blocks. This could be done simply with the following recursive endpoint:

r/inscriptions/block/<BLOCK_HEIGHT> : query any block height and return inscription ID's on that block

Should only need to return inscription ID as we can gather INFO, CONTENT, METADATA, and PARENT/CHILD recursively from ID.

Specifically, this would allow inscription-based indexers to be built, which is vital for the future of bitmap and other namespaces.

@NRCHST
Copy link

NRCHST commented May 17, 2024

Yes please!

@Zmakin
Copy link

Zmakin commented May 17, 2024

Please allow this, it would substantially benefit all indexers as they could reduce their API calls to limit specifically to relevant transactions containing inscriptions.

@cryptoni9n
Copy link
Collaborator

Let's mirror the explorer feature of retrieving inscriptions from blocks. This could be done simply with the following recursive endpoint:

r/inscriptions/block/<BLOCK_HEIGHT> : query any block height and return inscription ID's on that block

Should only need to return inscription ID as we can gather INFO, CONTENT, METADATA, and PARENT/CHILD recursively from ID.

Specifically, this would allow inscription-based indexers to be built, which is vital for the future of bitmap and other namespaces.

Hi blockamoto,

Could you use this instead? I get 878 inscription ID's from the following curl script:

curl -s -H "Accept: application/json" 'http://localhost:80/block/840000' | jq '.inscriptions' > \block840000.json

@billpan69
Copy link

Yes please!!!

@bitlodo
Copy link

bitlodo commented May 17, 2024

very useful!

@astralarkitekt
Copy link

Let's mirror the explorer feature of retrieving inscriptions from blocks. This could be done simply with the following recursive endpoint:
r/inscriptions/block/<BLOCK_HEIGHT> : query any block height and return inscription ID's on that block
Should only need to return inscription ID as we can gather INFO, CONTENT, METADATA, and PARENT/CHILD recursively from ID.
Specifically, this would allow inscription-based indexers to be built, which is vital for the future of bitmap and other namespaces.

Hi blockamoto,

Could you use this instead? I get 878 inscription ID's from the following curl script:

curl -s -H "Accept: application/json" 'http://localhost:80/block/840000' | jq '.inscriptions' > \block840000.json

Unfortunately, this is inaccessible on-chain. Security policies of the ordinals iframe sandbox prevent access to that.

A recursive endpoint is required to be able to access this info on-chain.

bitmapstr added a commit to bitmapstr/ord that referenced this issue May 18, 2024
Add r/inscriptions/block/<BLOCK_HEIGHT> to retrieve inscription ID's ordinals#3765
@SpyrosKoTV
Copy link

SpyrosKoTV commented May 18, 2024

Yes please!!!!

@colorshifterz
Copy link

awesome, let's go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To Do
Development

No branches or pull requests

10 participants