bestinslot-xyz / OPI

Open Protocol Indexer, OPI, is the best-in-slot open-source indexing client for meta-protocols on Bitcoin.
Apache License 2.0
202 stars 110 forks source link

How to process Batch Transfer? #47

Open StewartYe opened 1 month ago

StewartYe commented 1 month ago

I want to process multiple mints in one bitcoin transaction. For example, [(userA mint ordi), (userB mint sats)]. I put the commits of these two mint operations into the same bitcoin transaction through two inputs. Then reveal them in another bitcoin transaction. Can opi indexer distinguish the ordi and stats mint inscriptions and put them into which output of the reveal?

samedcildir commented 1 month ago

If you reveal two inscriptions in the same tx, I believe it will be labelled as "vindicated" by ord since they were cursed before and "vindicated" inscriptions are invalid by brc-20 rules. So, you should reveal a single mint inscription in a single tx.