All glossary terms
Security

Front-running

Observing a pending transaction in the mempool and submitting a transaction with a higher gas price to execute before it. In DeFi, this is commonly used to sandwich trades: buying before a large swap (raising the price) and selling after (profiting from the price impact the victim caused).

Related terms in Security