Integration Guide
Prerequisites
Step 1: Configure Provider and Signer
const ethers = require('ethers');
// Provider (read-only)
const provider = new ethers.providers.JsonRpcProvider('https://bsc-dataseed.binance.org/');
// Signer (for transactions - NEVER expose private key in frontend!)
const privateKey = process.env.PRIVATE_KEY; // use .env or hardware
const wallet = new ethers.Wallet(privateKey, provider);Step 2: Load Vault Contract
Step 3: Common Integration Examples
Step 4: Affiliate Integration
Integration Best Practices
Last updated
