User Guide
Learn how to use ExePay for private, secure payments on Solana.
Getting Started
ExePay makes it easy to send private payments on Solana. Whether you're sending SOL or SPL tokens, you can choose the level of privacy that fits your needs.
Installation
Install the ExePay packages using pnpm, npm, or yarn:
pnpm add @exe-pay/core @exe-pay/react-hooksBasic Usage
Here's a simple example of sending a payment:
import { ExePayClient } from '@exe-pay/core';
import { Connection, clusterApiUrl } from '@solana/web3.js';
// Create a connection
const connection = new Connection(clusterApiUrl('mainnet-beta'));
// Initialize the client
const client = new ExePayClient(connection);
// Send a payment
const result = await client.sendPayment({
recipient: 'RECIPIENT_ADDRESS',
amount: 1000000, // 0.001 SOL in lamports
privacyLevel: 'public' // or 'shielded' or 'private'
});Privacy Levels
Public
Standard Solana transfers. Transaction details are visible on-chain. Use this when privacy isn't a concern.
Shielded (Demo)
Hides transaction amounts using Pedersen commitments. Sender and recipient addresses are visible, but the amount is encrypted. Currently in demo mode.
Private (Demo)
Fully private transfers where sender, recipient, and amount are all hidden using zero-knowledge proofs. Currently in demo mode.