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

Feature: use micro-stacks API wrappers #40

Open
whoabuddy opened this issue Mar 4, 2022 · 0 comments
Open

Feature: use micro-stacks API wrappers #40

whoabuddy opened this issue Mar 4, 2022 · 0 comments

Comments

@whoabuddy
Copy link
Contributor

Turns out micro-stacks has wrappers for the Stacks API!

This means functions like getStacksBlockHeight() in /lib/stacks.ts could use fetchCoreApiInfo()
https://docs.micro-stacks.dev/modules/core/api/info#fetchcoreapiinfo

It's a small change but would lead to more consistency with using the library and features. No need to reinvent the wheel.

Will need to double-check the error flows to make sure all exceptions are caught in the right places.

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

No branches or pull requests

1 participant