shibaswap-v3-sdk
v1.1.7
Published
ShibaSwap V3 SDK
Readme
Installation
Install ShibaSwap V3 SDK via your package manager, a <script> tag, or build from source.
Package Manager
Install the required packages:
pnpm add shibaswap-v3-sdk viemCDN
If you're not using a package manager, you can also use ShibaSwap V3 SDK via an ESM-compatible CDN such as esm.sh. Simply add a <script type="module"> tag to the bottom of your HTML file with the following content:
<script type="module">
import { getSwap, ChainId } from "https://esm.sh/shibaswap-v3-sdk";
const swap = await getSwap({
chainId: ChainId.ETHEREUM,
tokenIn: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
tokenOut: "0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE", // SHIB token address
amount: 1000000000000000000n,
maxSlippage: 0.005,
});
console.log(swap);
</script>Note
This SDK is a fork of the Sushi SDK, modified and maintained by the ShibaSwap team for integration with ShibaSwap V3 protocol.
Features
- Full TypeScript support
- First-class viem support
- Tree-shakeable and lightweight
- ESM and CJS builds
- Extensive documentation
- Comprehensive test coverage
████████████████
████░░▒▒▒▒▒▒░░░░▒▒▒▒██████
██▒▒░░▒▒░░░░░░░░░░░░░░░░░░░░████
████████▒▒░░▒▒░░░░░░░░░░░░░░░░░░░░░░░░████
▒▒▒▒██▒▒▒▒░░▒▒██████▒▒░░░░░░░░░░░░░░▒▒░░░░░░▒▒▒▒██
████░░▒▒░░▒▒░░░░░░░░░░░░████▒▒▒▒░░░░░░░░░░░░░░▒▒░░░░▒▒██
██░░░░░░░░▒▒░░▒▒░░░░░░░░░░░░░░████▒▒░░░░░░░░░░░░░░░░░░░░░░██
██▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒████░░░░░░░░░░░░░░░░░░░░▒▒██
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░██▒▒░░░░░░░░░░░░░░░░░░▒▒██
██░░▒▒░░░░░░░░░░░░░░░░░░▒▒░░░░░░▒▒░░░░░░░░▒▒██▒▒░░▒▒░░░░░░░░░░░░░░░░██
▓▓▓▓▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒██▒▒░░░░░░░░░░░░░░░░▒▒██
████░░░░░░░░░░░░▒▒░░▒▒▒▒░░▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒██▒▒░░░░░░░░░░░░░░░░▒▒██
██░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░▒▒▒▒░░▒▒░░░░░░░░░░░░░░░░░░░░░░░░██░░▒▒░░░░░░░░░░░░░░██
██░░░░░░▒▒▒▒▒▒▒▒██████████▒▒▒▒▒▒░░▒▒▒▒░░░░░░▒▒▒▒░░░░░░░░░░▒▒▒▒▓▓▒▒░░░░░░░░░░░░░░▒▒██
██▒▒▒▒▒▒██████░░░░░░░░░░██████▒▒▒▒▒▒░░▒▒░░▒▒▒▒░░░░░░░░░░▒▒░░░░██░░░░░░░░░░░░░░░░██
████████ ██ ░░ ░░░░░░██████▒▒▒▒▒▒▒▒░░░░░░░░░░░░░░▒▒░░██▒▒▒▒░░░░░░░░░░░░░░██
██ ░░░░░░░░████▒▒▒▒░░▒▒░░░░░░░░░░░░▒▒░░██▒▒▒▒░░░░▒▒▒▒░░░░░░██
████ ░░ ░░ ░░░░████▒▒▒▒▒▒░░░░░░░░░░░░░░████▒▒░░░░░░░░░░░░░░▒▒██
████ ░░ ░░ ░░░░██▒▒░░▒▒░░░░░░░░░░░░▒▒████▒▒▒▒░░░░░░░░░░░░░░████
████ ░░██▒▒▒▒▒▒░░░░░░░░░░▒▒██░░██▒▒▒▒░░░░░░░░░░░░░░▒▒██
▓▓▓▓ ░░ ░░░░ ░░██▒▒░░▒▒░░░░░░░░░░▒▒██ ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██
████████ ░░██▒▒▒▒▒▒░░░░░░░░░░▒▒██████▒▒▒▒░░░░▒▒████
░░░░░░ ▓▓██████████▒▒▒▒▒▒░░░░░░░░░░░░▒▒▒▒▒▒▒▒██▓▓▓▓▓▓ ░░
██▒▒▒▒▒▒▒▒░░░░░░░░░░░░▒▒██
████▒▒▒▒▒▒░░░░░░▒▒▒▒██
████▒▒▒▒▒▒▒▒████
████████Install
https://docs.sushi.com/sdk/installation
