Learn how to use the ShibaSwap V1 SDK to build applications on top of ShibaSwap V1 with TypeScript/JavaScript.
@shibaswap/sdk
) is a TypeScript/JavaScript library that lets you build on top of ShibaSwap V1—a Uniswap V2 fork originally inherited via SushiSwap—using familiar abstractions like Token
, Pair
, Route
, and Trade
.
It runs in any JS environment (browsers, Node) and powers both quick hackathon prototypes and production-grade integrations.
Under the hood:
@shibaswap/sdk-core
and ethers
as dependencies.ethers
.0x03f7724180aa6b939894b5ca4314783b0b36b329
Example: Swap 1 ETH → DAI
FACTORY_ADDRESS
: ShibaSwap V1 Factory AddressINIT_CODE_HASH
: For CREATE2 address generationMINIMUM_LIQUIDITY
: Protocol-reservedErrors
: InsufficientReservesError
, InsufficientInputAmountError