Flash loan

A loan with no collateral that is borrowed and repaid within a single blockchain transaction. If it isn't repaid, the whole transaction is undone.

A flash loan is a loan that is borrowed and repaid within the same blockchain TransactionTransactionA record of crypto moving from one wallet address to another, signed with the sender's private key and stored permanently on the blockchain.. No CollateralCollateralAn asset pledged as security for a loan. In DeFi, the collateral usually has to be worth more than the loan. is needed. If the loan and its fee are not back by the end of the transaction, the whole transaction is reversed as if it never happened. The lender therefore takes no risk of the loan going unpaid.

How does it work?

A single blockchain transaction can contain many steps. A developer writes a smart contractSmart contractA program that runs on a blockchain and automatically carries out what it was written to do once certain conditions are met. that takes the loan, uses the money and repays it, all in one transaction. Either every step succeeds or none of them does.

Aave and other lending services offer these loans. On Aave the fee started at 0.05% of the amount, but it can be changed by a vote. Common uses:

  • Arbitrage: buying where the price is lower and selling where it is higher, without having the money yourself.
  • Refinancing: repaying a loan in one place, freeing the collateral and moving the loan elsewhere.
  • Liquidations: repaying another user's debt in a LiquidationLiquidationWhen a loan or leveraged position is closed automatically because the collateral or margin no longer covers the debt. and receiving the collateral in return.

What to keep in mind

A flash loan is a developer's tool, not something ordinary people use directly. Flash loans have also been used in attacks. With a huge amount of borrowed money inside one transaction, an attacker can, for example, push around a price that an OracleOracleA service that brings outside information, such as prices or weather data, into smart contracts on a blockchain. reads from a small exchange, or buy temporary voting power.

In April 2022 an attacker used a flash loan to exploit the governance system of a project called Beanstalk. According to Beanstalk, about US$77 million of users' assets was taken. The weakness lay in the system that was attacked, but the loan made the attack possible without any money of the attacker's own.

Everything in Myntkaup Learn is written and regularly reviewed by the Myntkaup editorial team. It is for education and is not investment advice. Editorial policy. Updated 18 October 2026.