How Markto works
Markto rebuilds a wallet's trading history from public Elysium data and prices it from the pools the trades went through.
1. Transfers
Two eth_getLogs requests return every ERC-20 Transfer into and out of the wallet, from block 0. That is every coin it ever held.
2. Trades
For the newest 400 transactions with a transfer, Markto reads the receipt. If the receipt holds a Uniswap v4 Swap event on a pool that contains the coin, the transfer is a trade, and the pool's other currency is what was paid or received. Pool currencies come from the PoolManager's Initialize event.
- HYPE pairs are counted as they are.
- KNTQ pairs are converted at today's KNTQ price.
- Transfers without a swap (airdrops, gifts, moves between your wallets) come in at zero cost and are marked received.
3. Accounting
Average cost per coin. A buy adds to the quantity and the cost. A sell books realized profit: proceeds minus the average cost of the part sold. What is still held is valued at the current price; the difference from its cost is unrealized.
4. Prices now
The Parity market feed for the most traded coins, with 24h change. Other coins use the price of the wallet's last trade in them, labelled as such.
Limits
- Multi-hop routes through two pools may be counted at the leg that touches the coin.
- Markto is read-only and stores nothing.