Learn

What Is a Flash Loan?

A flash loan lets you borrow any amount of any token with zero collateral— as long as you repay it within the same transaction. If you don't repay, the entire transaction reverts as if nothing happened.

How Flash Loans Work

On Solana, a flash loan happens inside a single atomic transaction. "Atomic" means it either succeeds completely or fails completely — there is no in-between state. The entire borrow-use-repay cycle takes about 400 milliseconds (one Solana block).

1
Borrow

You request any amount of any token — SOL, USDC, JitoSOL, mSOL, BONK... No collateral needed.

2
Use

Your logic executes: arbitrage between DEXs, liquidate underwater positions, swap collateral, loop leverage.

3
Repay

Return the borrowed amount + a tiny fee (0.03%). If repayment fails, everything reverts. You lose nothing.

💡 Key Insight

Flash loans are risk-free for the borrower. If your arbitrage doesn't work out, if the price moved, if anything goes wrong — the transaction simply reverts. You only pay the network fee (~$0.0001 on Solana). The borrowed tokens are never actually "at risk".

What Can You Do With Flash Loans?

📊Arbitrage

Spot a price difference between two DEXs? Flash loan the capital, execute both sides, pocket the profit. Zero risk, zero capital.

🛡Self-Liquidation

Your lending position is about to get liquidated with a 10% penalty? Flash loan to self-liquidate and save thousands.

🔄Collateral Swap

Want to switch your collateral from SOL to JitoSOL? One atomic transaction — no position closing needed.

📈Leverage Looping

Create 3-5x leveraged positions in one transaction instead of manually looping deposit→borrow→deposit.

🤖Liquidation Bots

Flash loan the required token to liquidate undercollateralized positions. Keep the bonus, repay the loan.

💱DEX Rebalancing

Protocols use flash loans to rebalance liquidity pools, oracle updates, and internal accounting.

Flash Loans vs Traditional Loans

⚡ Flash LoanTraditional Loan
Collateral RequiredNone100-150%
DurationSame transaction (~400ms)Days to months
Risk of LossZero — reverts if failsFull capital at risk
Capital Needed$0Full loan amount
Use CaseArbitrage, liquidation, swapsTrading, holding
AccessAnyone (permissionless)KYC/credit check

Why Solana Is Ideal for Flash Loans

400ms Blocks

Solana processes a block every 400ms — your flash loan completes in under a second.

💰
$0.0001 Fees

Transaction fees are negligible. Failed flash loans cost virtually nothing.

🔗
Atomic Transactions

Solana transactions are all-or-nothing by design — perfect for flash loan safety.

Ready to Try Flash Loans?

VAEA Flash supports 27+ tokens on Solana. Start with our SDK in under 5 minutes.

Read the DocsExplore Tokens →