# Types of Transactions

### Public Transactions

Public transactions are standard transactions, which after being signed by the sender, are pooled in the mempool. The transaction information such as the sender, recipient, token amount, and fees is publicly visible and awaits to be mined. If the signature is valid, the sender has sufficient funds and the nonce is correct, miners will include it in a block.&#x20;

### Private Transactions

Private transactions are a specific type of transaction that bypasses the public mempool and are directly sent to miners that add the next block. By sending transactions directly to miners or validators, private transactions remain private until they are added to the blockchain, minimizing the risk of being attacked by malicious entities and protecting them from being front-run.

### How Do Private Transactions Prevent Frontrunning?

Private transactions prevent frontrunning by hiding transaction details, such as gas, traded tokens and volume from MEV bots. Therefore, without knowing the value of a trade or the gas required to frontrun the transaction, MEV bots will not be financially incentivized to target a private transaction of an unknown size because there is no way to undertake a risk/reward assessment.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hackless.gitbook.io/hackless-docs/general/types-of-transactions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
