Splits Development Kit
This page explains how to use the Splits Development Kit (SDK). The SDK makes it easier to query the subgraph or call contract functions. You can find the SDK source code on Github (opens in a new tab).
To get started, install the package using
yarn add @0xsplits/splits-sdk
The SDK uses viem under the hood. If you are using ethers-v5 and do not want to add viem to your project, you can check out the original version of the SDK which uses ethers-v5.
If you are migrating from the ethers version to the viem version, please see the migration notes (opens in a new tab).