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

"GET /txs/{hash}/cbor" functionality #298

Closed
ginnun opened this issue Oct 2, 2024 · 2 comments · Fixed by #299
Closed

"GET /txs/{hash}/cbor" functionality #298

ginnun opened this issue Oct 2, 2024 · 2 comments · Fixed by #299

Comments

@ginnun
Copy link

ginnun commented Oct 2, 2024

Hello there,

I am trying to figure out how to get data from /txs/{hash}/cbor.
Is it exposed in the blockfrost-js client? Is there any workaround I could do?

As a workaround, I am going to use:
const response = await this.blockfrost.instance<Schemas['script_cbor']>('/txs/${hash}/cbor');

@slowbackspace
Copy link
Contributor

Hi, I just opened PR with the method for CBOR endpoint, but you workaround will work just fine in the meantime :)

@slowbackspace
Copy link
Contributor

@blockfrost/blockfrost-js@5.6.0-beta.2 is now in NPM with BlockfrostAPI.txsCbor(hash) method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants