Developer SDK
Integrate institutional-grade execution privacy directly into your own DApps, wallets, or yield aggregators using our TypeScript SDK.
import { AvelonClient } from '@Avelonfi/sdk';
// Initialize the secure enclave connection
const client = new AvelonClient({
rpcUrl: 'https://api.mainnet-beta.solana.com',
enclaveId: 'prod-us-east'
});
// Deploy an autonomous yield agent securely
const agent = await client.deployAgent({
strategy: 'TWAP_ACCUMULATOR',
inputToken: 'USDC',
outputToken: 'SOL',
amount: 100_000,
duration: '7d',
privacyLevel: 'STRICT'
});
console.log(`Agent deployed. Enclave ID: ${agent.id}`);