TS SDK (Odyssey)
Installation
The PiperX SDK is a powerful toolkit for integrating the best liquidity layer on Story Network into your applications. To start using the PiperX SDK, you can easily download the npm package by running the command
npm i @piperx/sdk
Deployed Contract Address
Please find the deployed contract address below, note that they are subjected to change in the new testnet waves
PiperX V2 Factory
0x700722D24f9256Be288f56449E8AB1D27C4a70ca
PiperX V2 Router
0x8812d810EA7CC4e1c3FB45cef19D6a7ECBf2D85D
Wrapper IP token
0xe8CabF9d1FFB6CE23cF0a86641849543ec7BD7d5
PiperX V3 Factory
0xf3d448d7A83F749695c49d8411247fC3868fB633
PiperX V3 Swap Router
0xbBb8B63596d5447a12Ddee557ac9fA326f42B57D
PiperX V3 Position Manager
0xf03c65d9be145746f800E2781eD140F6dd238F38
Wallet Integration
In all the following SDK examples, it require user to use a wallet provider library to interact with blockchain. We use ethers library as example, but you could get signer from other wallet providers.
Last updated