Protox SDK is a developer-friendly TypeScript toolkit for interacting with Protox smart contracts on the Stellar network.
- Soroban Integration: High-level wrappers for Protox vault contracts.
- Wallet Support: Seamless integration with Stellar wallets (Freighter, Albedo, and private keys).
- Network Management: Easy switching between Testnet and Mainnet.
- Transaction Helpers: Automated fee estimation, footprint calculation, and simulation.
npm install @protox/sdkimport { StellarClient, ProtoxVault, PrivateKeyWallet, WalletConnector, NETWORKS } from '@protox/sdk';
// 1. Initialize the client
const client = new StellarClient(NETWORKS.TESTNET);
// 2. Connect a wallet
const wallet = new WalletConnector(new PrivateKeyWallet('S...'));
// 3. Initialize the vault
const vault = new ProtoxVault('CD...', client, wallet);
// 4. Deposit tokens
await vault.deposit(1000);
// 5. Check balance
const balance = await vault.getBalance('G...');
console.log(`Current Balance: ${balance}`);- SDK Overview: Architecture and module breakdown.
- Usage Guide: Detailed examples and best practices.
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
MIT License. See LICENSE for details.