hirosystems / ordhook

Build indexers, standards and protocols on top of Ordinals and Inscriptions (BRC20, etc).
Apache License 2.0
180 stars 55 forks source link

Using ordhook-sdk-js #265

Closed devlancer412 closed 6 months ago

devlancer412 commented 7 months ago

I've got this error when install @hirosystems/ordhook-sdk-js. Please give me solution.

image

sabbyanandan commented 7 months ago

Hi, @devlancer412! Glad to see you're trying to use Ordhook. Could you share a little more context as to the steps you followed and how you ended up with this error? The more details, the better it would be for us to review/troubleshoot.

devlancer412 commented 7 months ago

I've run bitcoin core and was going to get event from this daemon with ordhook library. I'm using NestJs backend and just tried to install this package to my backend

sabbyanandan commented 7 months ago

@devlancer412: Alright, that is helpful.

@lgalabru: FYI.

lgalabru commented 7 months ago

hey @devlancer412! This javascript package is very promising, but also ver experimental at this point - pretty much a wip. We're not using it yet, it is a work in progress so unless you're familiar with Rust, Nodejs, NAPI and ready to contribute actively on this component, I would advise against going down that route :).

devlancer412 commented 7 months ago

So you mean I can't use that package for now? If so could you let me know detail about callback endpoint of ordhook server?

lgalabru commented 6 months ago

You can use that package but you'll be on your own, the issues you'd end facing are uncharted territory. The alternative is to use ordhook-cli and register an HTTP observer, as described in our documentation.

devlancer412 commented 6 months ago

https://github.com/hirosystems/docs/issues/615

@lgalabru Could you check about this?