Overview

TxTracker is a mempool manager for MantleTx transactions. It tracks inter-transaction dependencies through shared DependencyIds and produces a priority-ordered list of pending chains of transactions: those with the highest revenue are returned first, breaking ties by how many other transactions depend on them.

Dependencies are resolved eagerly when both transactions are in the pool, and deferred when a parent is not yet present — with the count flushed retroactively the moment the parent arrives.


Data Model

<aside> ⚠️

The types here are simplified for the example. We should refer to the proper types in the specification.

</aside>

DependencyId

An immutable, hashable identifier used for both transaction IDs and dependency references (inscription hashes, UTXO note IDs, etc.).

Inscription

An Op that chains inscription content. Fields:

Key methods:

Transfer

An Op that consumes UTXO inputs and produces UTXO outputs. Fields:

Key methods: