Author

Topic: How to get ordinals range on a given Bitcoin wallet address? (Read 58 times)

sr. member
Activity: 406
Merit: 443
It can be done by managing the ongoing observer, where you push data from your node to a database that works better with Ordinals, scan the blockchain by block height, push the BRC-20 inscription data to the new database and then create your own index.

Ordhook provides you with a tool to customize your database or use the Ordinals API

https://www.hiro.so/blog/how-to-get-ordinals-inscription-data-with-ordhook
https://www.hiro.so/blog/introducing-the-ordinals-explorer-and-ordinals-api
legendary
Activity: 4298
Merit: 3209
While it is possible to list all of the the ordinals at an address (or more specifically, in a UTXO), it might not be practical because each time a range of ordinals is involved in a transaction, the range may be split in several places.

At the extreme, an address with 1 BTC could contain 100,000,000 distinct ranges of 1 sat each.

Likewise, though it may be possible to have a database with the location of each ordinal, it is not practical as the size of the database would be huge. It is more likely that Ordiscan just tracks the locations of specific ordinals, and just looks to see if any are at the address you supply. Finding the UTXO with a specific ordinal involves scanning the block chain for the chain of transactions involving the ordinal, starting at the originating block.

This shows how ordinals are created and transferred:
newbie
Activity: 1
Merit: 0
Hey everyone, what API can I use that supports retrieving ranges of ordinals on a given Bitcoin address?

Something like Ordiscan does when you input an address and retrieves a list of rare satoshis, but I’d like to get all satoshi numbers on an address?
Jump to: