This SDK facilitates interactions with Universal Router. This repo is the pancakeswap variation of the original Universal-router-sdk by UniswapLabs. The PancakeSwap implementation makes the necessary changes in order to be compatible with the Pancakeswap smart-router and other existing SDK's.
Install latest version of universal-router-sdk. Then import the corresponding Trade class and Data object for each protocol you'd like to interact with.
npm add @pancakeswap/universal-router-sdk
# or
yarn add @pancakeswap/universal-router-sdk
# or
pnpm add @pancakeswap/universal-router-sdk