← All Tokens
PYTH

Flash Loan Pyth Network

PYTHsynthetic route
Max Available
PYTH
Fee (SDK)
Includes swap
Route
Synthetic
Status
Loading...

Flash Loan Calculator

Simulate a flash loan on PYTH — 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 PYTH 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('PYTH', 1000);
console.log(`Fee: ${quote.fee_breakdown.total_fee_pct}%`);

const sig = await flash.execute({
  token: 'PYTH',
  amount: 1000,
  onFunds: async (ixs) => {
    ixs.push(myArbitrageIx);
    return ixs;
  }
});
Install →npm i @vaea/flash
How this flash loan works
1
begin_flash()
Register PYTH loan on-chain
2
Borrow SOL → swap to PYTH
Via Sanctum/Jupiter
3
Your logic executes
Arb, liquidation, swap...
4
end_flash()
Repay + ~0.03% fee

Frequently Asked Questions — PYTH Flash Loan

What is a PYTH flash loan?

A PYTH flash loan lets you borrow Pyth Network (PYTH) with zero collateral in a single Solana transaction. You receive the full amount, execute your strategy (arbitrage, liquidation, collateral swap), and repay — all atomically. If repayment fails, the entire transaction reverts.

How much does a PYTH flash loan cost?

The current fee for a PYTH flash loan is ~0.10%. This includes the VAEA protocol fee (0.03%) plus the real-time swap cost calculated from Jupiter. Fees update every ~60 seconds based on actual market liquidity.

How much PYTH can I borrow?

You can currently borrow large amounts of PYTH. Available liquidity is pulled from Solana lending protocols and updated every 10 seconds. Check the dashboard for real-time availability.

What is the difference between direct and synthetic flash loans?

Direct flash loans borrow tokens directly from lending protocols (Marginfi, Kamino, Save) at a fixed 0.03% fee. Synthetic flash loans borrow a base token (SOL/USDC) and swap to your target token via Sanctum or Jupiter, with fees that vary based on market liquidity.

How does the synthetic route work for PYTH?

VAEA borrows SOL or USDC from a lending protocol, then swaps to PYTH via Jupiter/Sanctum. After your logic runs, it swaps back and repays — all in one transaction. The swap cost is calculated in real-time using the Price-vs-Quote method.

Which SDKs support PYTH flash loans?

VAEA Flash supports PYTH in all three SDKs: TypeScript (npm i @vaea/flash), Rust (cargo add vaea-flash-sdk), and Python (pip install vaea-flash). All SDKs include simulation, fee estimation, and execute functions.

Is it safe to use PYTH flash loans?

Yes. Flash loans are atomic — the entire transaction succeeds or reverts. You never lose funds because if the repayment fails, Solana rolls back everything. VAEA's on-chain program verifies repayment before the transaction finalizes.

Related Topics

PYTH flash loanborrow PYTH SolanaPyth Network DeFiSolana flash loanatomic transactionno collateralVAEA Flashflash loan SDKsynthetic routeJupiter swapreal-time feesswap PYTHarbitrage botliquidation botDeFi automationPYTH price

Other Flash Loan Tokens

SOL
SOL
USDC
USDC
USDT
USDT
JitoSOL
JitoSOL
JupSOL
JupSOL
JUP
JUP
JLP
JLP
cbBTC
cbBTC
mSOL
mSOL
bSOL
bSOL
INF
INF
laineSOL
laineSOL
View all 30 →