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

Expose API through a single object instead of exported methods #187

Open
rolznz opened this issue Jan 8, 2024 · 0 comments
Open

Expose API through a single object instead of exported methods #187

rolznz opened this issue Jan 8, 2024 · 0 comments
Labels

Comments

@rolznz
Copy link
Collaborator

rolznz commented Jan 8, 2024

This way you could initialize a new BitcoinConnect instance and interact with it.

  • New methods do not always need to be exposed (in the react wrapper for example) and if people want to do custom stuff they can access it directly from the object.
  • They can also more easily see the current state of Bitcoin Connect.
  • Getters can be added rather than always using functions

Related:

#186 (comment)

#177 (comment)

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

No branches or pull requests

1 participant