Installation
Get started with ExePay in minutes. This guide will walk you through installing the SDK and setting up your first project.
Prerequisites
Before you begin, make sure you have:
- Node.js 18+ installed
- A Solana wallet (Phantom, Backpack, or Solflare)
- Basic knowledge of React and TypeScript
- Some SOL for transaction fees (devnet SOL is free)
Install Packages
Install ExePay SDK packages using your preferred package manager:
# Using pnpm (recommended)
pnpm add @exe-pay/core @exe-pay/react-hooks @solana/web3.js# Using npm
npm install @exe-pay/core @exe-pay/react-hooks @solana/web3.js# Using yarn
yarn add @exe-pay/core @exe-pay/react-hooks @solana/web3.jsInstall Wallet Adapters
For wallet integration, you'll also need Solana wallet adapters:
pnpm add @solana/wallet-adapter-react @solana/wallet-adapter-react-ui @solana/wallet-adapter-walletsSet Up Environment Variables
Create a .env.local file in your project root:
NEXT_PUBLIC_SOLANA_NETWORK=devnetNEXT_PUBLIC_SOLANA_RPC_URL=https://api.devnet.solana.comVerify Installation
Test your installation by importing the SDK:
import { Connection, PublicKey } from '@solana/web3.js';
import { useWallet } from '@exe-pay/react-hooks';
// Your code here...Next Step
Now that you've installed ExePay, head over to the Quick Start Guide to send your first private payment!