I have seen that a few of you started playing with the SDK and are building your own services. This is really awesome! I know our SDK is still a bit rough to get started with. So I wanted to make it easier for you all to get started with using the SDK in the browser, as such I built example project.
The example shows a small swap price service similar to the mobile. It only allows USDC -> BTC swaps, and it not meant to be used for anything serious.
Great !! During my coding, the most difficulties I had, was websocket handling in a React component context (how to avoid multiple connections, reconnections, React state hook update in ws events)
That would be awesome to have a template for that, as well as React Functional Component programming mode.
after yarn install i get a lot of this:
must be built because it never did before or the last one failed
and when i run yarn start, i get this:
Something that got detected as your top-level application (because it doesn’t seem to belong to any package) tried to access a package that is not declared in your dependencies