> For the complete documentation index, see [llms.txt](https://docs.manka.wtf/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.manka.wtf/preconfirmations/overview.md).

# Overview

Transactions a leader has committed to its block, streamed before the block is shredded

A preconfirmation is a transaction the current leader has already taken into the block it is building. The leader sends it to us the moment it is scheduled, before the transaction is put into an entry, shredded and sent to the network. We remove duplicates across validators, match it against your filters and stream it to you.

That places it ahead of everything else you can subscribe to:

| Stage                    | What you can see                                    | When                                   |
| ------------------------ | --------------------------------------------------- | -------------------------------------- |
| Mempool-style feeds      | Transactions someone submitted                      | May never be included                  |
| **Preconfirmations**     | **Transactions the leader is putting in its block** | **Before the block leaves the leader** |
| Shred Stream             | Transactions in shreds as they propagate            | After the leader shreds them           |
| RPC `processed` / Geyser | Executed transactions                               | After replay                           |

**What a preconfirmation is not**

It is the leader's commitment, not a landing. The slot can still be skipped or forked away, and the transaction can still fail when it executes. We send no execution result. Confirm what matters to you with a normal commitment check.

**Coverage**

Preconfirmations exist only for slots whose leader streams to us. Other slots produce nothing, so the stream has gaps by design. Every covered slot opens with a `SlotOpened` message naming its leader, which is how you know which slots you are seeing. See Messages and delivery.\
\
If you connect in the middle of a slot, you get that slot's remaining transactions without its `SlotOpened`. Transactions of different slots can interleave, so a new `SlotOpened` does not close the previous slot.

**Endpoints**

| Region    | Address                       |
| --------- | ----------------------------- |
| Frankfurt | `fra-preconf.manka.wtf:12349` |
| Amsterdam | `ams-preconf.manka.wtf:12349` |
| New York  | `nyc-preconf.manka.wtf:12349` |

gRPC over TLS with a public certificate, so there is nothing to install.

Each region streams only the leaders connected to that region, so the regions see different slots. **Subscribe to all three for full coverage.** Each stream is billed for what it delivers.

**What you can filter on**

Accounts a transaction writes or mentions, its signers, and the instructions it calls: by program and discriminator, or by name from our catalog of launchpads and DEXes, such as `pump_fun.create`, `pump_swap.buy` or every `sell`. See Filters.

**What you need**

* A Manka API key, sent in the `x-api-key` header.
* Credit on your project. Preconfirmations are paid per delivered transaction from credit, and no plan is required. See Errors.
* At least one filter. There is no unfiltered firehose. See Filters.

{% hint style="info" %}
The service is `sugar.v1.Sugar`, with a single method `Subscribe`. The proto and examples are on GitHub: [Manka-Group/manka-preconf](https://github.com/Manka-Group/manka-preconf). Any gRPC client works.
{% endhint %}
