Phinx wallet helper SDK
Customized Sushiswap SDK for phinx wallet which handles the routes automatically for you, changes in trade quotes reactive subscriptions, exposure to formatted easy to understand information, bringing back the best trade quotes automatically, generating transactions for you and much more. All the Sushiswap logic on ETH and BSC for you in a simple to easy understand interface to hook straight into your dApp without having to understand how it all works.
Please note this is not owned or maintained by sushiswap and is a open source package for anyone to use freely.
Features
Queries all the best routes and finds the best price for you
Exposes all the route paths it tried so you can see every detail in how it worked out the best price
Easy subscriptions to get alerted when the price moves or the trade expires
The transaction is generated for you, just fill it with the gas details and send it on its way
All the figures are all formatted for you, no need to worry about timing it back to its decimal formatted place, just render it straight onto your UI
Exposes all the tokens metadata for you, name, symbol, decimals
Uses multicall for every on chain lookup, so even though it could be doing 100 JSONRPC calls it is all put into a few calls meaning it can stay very fast
Tidy bundle size
Fully typescript supported with full generated typings
Other cool internal stuff exposed for your use
- query many tokens in 1 jsonrpc call perfect to get token metadata fast
- all the sushiswap contracts are all exposed for your use with full typings if you wanted to call a more bespoke method
- and much more!!
npm
$ npm install @phinx-app/phinx-helper-sdk
yarn
$ yarn add @phinx-app/phinx-helper-sdk