Installation
SDK

Installation

Installing the SplitPay client modules and Stellar SDK peer dependencies.

How to integrate the SplitPay contract client into your TypeScript or Next.js project.

Peer Dependencies

The client requires the official Stellar SDK:

npm install @stellar/stellar-sdk @stellar/freighter-api

Importing the Client Module

In applications utilizing the SplitPay codebase, import directly from the contract client module:

typescript
import { splitPayClient, SplitPayContractClient } from "@/lib/contract/splitpay";