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

Document main methods #3

Closed
friedger opened this issue Jan 20, 2023 · 3 comments
Closed

Document main methods #3

friedger opened this issue Jan 20, 2023 · 3 comments

Comments

@friedger
Copy link
Owner

Main methods are

  • was-tx-mined
  • parse-block-header

To verify the parameters before calling a contract call that uses was-tx-mined (see e.g. https://github.com/friedger/stacks-swaps/blob/73b44fb466485f9f3d5554e77cf21068bdd4ee6a/src/components/SwapSubmit.jsx#L60), these methods are helpful:

  • verify-block-header
  • verify-merkle-proof

Maybe something from here can be reused: https://docs.catamaranswaps.org/en/latest/

@Teke-pixel
Copy link

Awesome 👏 very helpful

@friedger
Copy link
Owner Author

Content from readme was duplicated here:
https://clarity-bitcoin.gitbook.io/clarity-bitcoin-library/
stacks-network/docs#1589

@friedger
Copy link
Owner Author

Readme and gitbook were updated

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

2 participants