The owner asked for it on 2026-10-14: “branch off into a … delegation history branch for the public wallet. Then add it in. We can model what lace does here.”
Status: ✅ built 2026-10-14 on web-wallet/delegation-history, from main after #309. One PR: the build, the data layer’s route and the docs together, so this file went straight to the archive, as chunk 30’s did. What still holds is in architecture.md (Staking: the requests), flows.md (Staking and voting: the page), privacy.md (What Koios learns) and seedelf-data’s README (the route). The privacy policy is unchanged: its staking row already says your staking goes to the Cardano server as your stake address, and nothing is kept. That’s the reading chunk 30 took for the rewards; the owner may want a dated entry anyway.
_reference/lace at e431933)accounts/{stake}/delegations, /registrations and /withdrawals, every page, on each opening, then three requests per row’s transaction (txs/{hash}, its CBOR, its UTxOs) and one per input of a registration’s or deregistration’s transaction, for the deposit. Its rewards (/rewards, kept on the device) are merged in. Closing the sheet throws it all away.from(promise), not defer), so they never ask again.rewarded, as Rewards history). Rewards keep their own page (chunk 30).POST account_update_history?select=action_type,tx_hash,epoch_no,absolute_slot,block_time
&action_type=neq.withdrawal&order=absolute_slot.asc,tx_hash.asc,action_type.asc&offset=0&limit=1000
{"_stake_addresses":["stake1…"]}
then tx_info for the transactions it lists, Activity’s own request (20 a request), for what each certificate names.
account_update_history lists a key’s registrations, deregistrations, pool and vote delegations and withdrawals, but not which pool or DRep. The certificates in tx_info do (pool_id_bech32, drep_id, a registration’s deposit), read by Activity’s stakingOf, which counts only a certificate naming this stake key.NAMED_TXS, 10 requests). Mainnet’s busiest re-delegator has 1,282 pool delegations (1,289 rows): its older rows say only what they did (“Staked with a pool”). Two requests for nearly every account.A 23rd public route, POST /api/v1/account_update_history (api/src/public/account.rs), taking exactly the request above (one stake key, that select, filter and order, limit=1000, an offset that’s a multiple of 1,000, up to 100,000). About one user, so never kept.
grest.account_update_history (CC-BY-4.0) less its withdrawal arm: stake_registration, stake_deregistration, delegation and delegation_vote by addr_id, combined with union as Koios’s are, so a transaction’s certificates of one kind for the key are one row (a mainnet key delegated twice in each of two transactions has 31 rows, not 33, on both), joined to tx and block, sorted in SQL as the order says.idx_stake_registration_addr_id and idx_stake_deregistration_addr_id, home’s idx_delegation_addr_id_tx_id (read from the index alone) and delegation_vote_addr_id_idx. The busiest key: 117 ms cold, 5 ms warm.api/tests/fixtures/account-update-history.json, each a start of the live answer, since a history only grows at its end), as the NFT metadata’s does: the crate’s reqwest has no TLS, and calling Koios from a test would add one to what the deploy builds..prev lacks the route, so deploy/README.md’s rollback note needs its line for this build.delegationHistory, and DataLayerKoios’s override, as every public read; dataCost is 4.delegationHistory (the delegation-history request): the active account’s stake key; each row checked (a kind the wallet knows, a hash, whole epoch and time) before its transaction is asked about; named from the transaction; the stop’s deposit carried from its registration; a vote to the account’s own DRep marked (ownDrep, from the key); pools named from the device alone (poolsKnown).Delegations.tsx): the note that it’s read from the server each time; the years; the rows, an icon, what it did, the day and epoch, the deposit; Show more; the details. Hidden balances hide the deposits.public_grammar.rs takes the one request and refuses every other (page size, offset, the filter moved or changed, another select or order, newest first, two keys, an extra field); live_public.rs reads the five keys whole: one list in the order, no row twice, five columns, four kinds, the time and epoch its slot’s, and Koios’s recorded answer its start.staking.test.ts: the exact request, 12 rows in their order with the stop’s deposit and the own DRep, tickers from the session and the pool list with no pool_info, past 1,000 a page and 20 transactions a request, rows left out without asking about their transactions, the 200-transaction cap, someone else’s certificate in the same transaction ignored, deposits carried oldest first, and the active account’s key; data-layer.test.ts: every page on the data layer, or all again on Koios when one fails; delegations-screen.test.ts: the years, the rows’ words, a row with nothing named, hidden amounts, 50 at first, nothing yet, and where Staking offers it; e2e/extension.spec.ts: opening Staking asks nothing about it, the page asks twice, a row’s details link the transaction, and it’s read again each time it opens (ten runs in a row on 2 CPUs on the dev and store builds, all passed).tests/fixtures/record-delegations.mjs records the 12-word account’s history from preprod (12 certificates in 7 transactions: registered twice, stopped once, two pools, three votes, the newest to its own DRep) and those transactions’ certificates. The fakes serve the route in the order asked, and add the certificates to the one transaction Activity’s recording holds too (Activity’s tests don’t notice).account_info alone can’t tell it from a key never registered. A probe of account_update_history on opening Staking would, at a request a visit.tx_info already read.