ordhook icon indicating copy to clipboard operation
ordhook copied to clipboard

Support BRC-20 in Regtest

Open bezrazli4n0 opened this issue 1 year ago • 7 comments

Is your feature request related to a problem? Please describe. I can't test brc20 inscriptions locally with regtest bitcoin node because indexing starts from brc20 genesis block(779832).

Describe the solution you'd like Add some env flag to remove this hardcoded genesis block or set to zero

Describe alternatives you've considered Clone repo and manually set(patch) brc20 genesis block to zero

Was: "Can't test BRC20 inscriptions locally with regtest - BRC20_GENESIS_BLOCK is unreachable from local env"

bezrazli4n0 avatar Mar 19 '24 10:03 bezrazli4n0

when i set BRC20_GENESIS_BLOCK = 0 the result is {"limit":20,"offset":0,"total":0,"results":[]} . This is my bug image

louisdangw3 avatar Mar 19 '24 10:03 louisdangw3

when i set BRC20_GENESIS_BLOCK = 0 the result is {"limit":20,"offset":0,"total":0,"results":[]} . This is my bug image

It's working in my case

bezrazli4n0 avatar Mar 19 '24 11:03 bezrazli4n0

when i set BRC20_GENESIS_BLOCK = 0 the result is {"limit":20,"offset":0,"total":0,"results":[]} . This is my bug image

It's working in my case

are you fix this bug ?

louisdangw3 avatar Mar 21 '24 08:03 louisdangw3

Regtest is currently not supported for BRC-20. We will repurpose this ticket to track that change.

smcclellan avatar Apr 04 '24 15:04 smcclellan

@smcclellan Please what's the status of this?

Currently, when I send a GET request using the schema, I get a 400: Bad Request response (produced in the logs), which ultimately results in a 404 in stdout.

PS: I use Ord wallet to create the BRC20s.

kobby-pentangeli avatar May 03 '24 04:05 kobby-pentangeli

hi @kobby-pentangeli we're currently working on moving the BRC-20 indexing from the API into Ordhook. With this change, you'll be able to index BRC-20 in ordhook using regtest and then serve the data to the API. It's our top priority right now so I'll keep you updated when we have finished.

rafaelcr avatar May 15 '24 19:05 rafaelcr

@rafaelcr Thanks for the feedback. Just to be clear, does "moving" suggest that the current implementation of the API somehow supports regtest indexing, or perhaps available in a previous commit (state)? I'd love to check that out, just to set up some local infra for testing.

kobby-pentangeli avatar May 16 '24 04:05 kobby-pentangeli