@pioneer-platform/swapkit-sdk
v3.0.2
Published
THORSwap Lib swapkit-sdk
Downloads
6
Readme
@pioneer-platform/swapkit-sdk
SwapKit SDK
All-in-one SDK for SwapKit. It includes all the packages needed to use all SwapKit features.
Install
pnpm add @pioneer-platform/swapkit-sdk
import { createSwapKit, SwapKitCore } from '@pioneer-platform/swapkit-sdk';
const useSwapKitClient = () => {
const [skClient, setSkClient] = useState<SwapKitCore | null>(null)
useEffect(() => {
createSwapKit().then(setSkClient)
}, [])
return skClient
}
const client = useSwapKitClient()
await client?.connectEVMWallet(chains, WalletOption.Metamask)