⚡
Flash Loan Calculator
Simulate a flash loan on TRUMP — see the exact fee breakdown before you code.
Enter an amount above to see the exact fee breakdown
📦
Quick Start Code
Flash loan 1.00K TRUMP with the VAEA SDK — copy and paste into your project.
typescript
import { VaeaFlash } from '@vaea/flash';
const flash = new VaeaFlash({
apiUrl: 'https://api.vaea.fi',
source: 'sdk'
});
const quote = await flash.getQuote('TRUMP', 1000);
console.log(`Fee: ${quote.fee_breakdown.total_fee_pct}%`);
const sig = await flash.execute({
token: 'TRUMP',
amount: 1000,
onFunds: async (ixs) => {
ixs.push(myArbitrageIx);
return ixs;
}
});
Install →npm i @vaea/flash
How this flash loan works
1
begin_flash()
Register TRUMP loan on-chain
2
Borrow SOL → swap to TRUMP
Via Sanctum/Jupiter
3
Your logic executes
Arb, liquidation, swap...
4
end_flash()
Repay + 0.03% fee