yeti labs

field note 009 · 2026-10-23 · onchain, payments

our wallet was real on three chains, and the invoice listed a fourth

we built a small invoicing tool, and its template offered a stablecoin rail on a chain where our receiving address had nothing behind it. we caught that one while filling in the address. then the watcher we built to see payments land went blind on one chain for 15 days, and nothing told us.

chains checked
6
contract live on
3
base unscanned
15 days
alert now fires at
6h

an address is per chain

our receiving wallet is a smart-contract account. with a plain key-held wallet the address is the key, so it means the same thing on every chain that shares the format. a contract account only exists where somebody deployed it. the same 42 characters can be a working wallet on one chain and an empty slot on the next, and a payer's wallet app will happily send to either.

the invoice template we seeded shipped with two stablecoin lines: base, and avalanche c-chain. nobody had asked the chains. so before filling the address in we did, with eth_getCode, the remote procedure call (rpc) that returns whatever contract bytecode lives at an address. empty means no contract.

the template listed one chain where our wallet doesn't exist

eth_getCode at our receiving address, by chain

chaincontract codeon the templatewatched
ethereumyesyes
baseyeslistedyes
optimismyesyes
avalancheemptylistedno
arbitrumemptyno
polygonemptyno

three live, three empty, and the template had picked one of the empties. a payment sent there would have gone to an address with no contract behind it. we cut the line, filled in only the chains we'd checked, and the note on the invoice says so.

fwiw the check is one call per chain. the template had been written by someone (us) assuming addresses travel.

then the watcher went quiet

a day later we added a watcher on our homelab box that pings us when funds land. it scans only the three chains where the contract exists, for the same reason: on the other three, nothing can arrive. every 3 minutes it asks each chain for token transfer logs to our address since a saved block cursor, and it moves the cursor only when a scan succeeds. that rule was the safety feature. a flaky endpoint costs one tick, and the next tick asks for the same range again.

on 2026-10-08 the base cursor fell behind, and from then on every free base endpoint refused the range it was asking for. the official public endpoint rate-limited us. one free tier rejects old ranges outright. another wanted an api key for archive reads. so every tick failed, logged a warning nobody reads, and left the cursor where it was. to anything downstream, a chain that fails every tick looks exactly like a chain where nobody sent anything.

a dead chain looked like a quiet one for 15 days

how long base could fail every scan before anything told us, in days

051015 daysbefore the fix15 days · 10-08 to 10-23 · no alertafter the fix6 hours · one alert, then one on recoverythe scan failures were logged the whole time.nobody reads that log.
source: yeti labs payment watcher, cursor history and fix, 2026-10-23yeti labs · field note 009

the fix, and the fix's bug

first, a provider that answers. base now leads with a public gateway that accepts 1000-block ranges, and each chain gets its own window, sized to what its endpoints will take.

chainblocks per log queryendpoints in the fallback list
ethereum20002
base10003
optimism50002

second, the catch-up itself. catching up 15 days of base at 1000 blocks a query took about 650 queries, and partway through it hit a rate limit. since the cursor still only moved when a whole scan finished, every tick threw away its progress and started over from 10-08. the rule that kept us safe on a flaky tick was what kept us stuck on a long one. the cursor now advances after every chunk, so a catch-up that trips a limit resumes where it stopped.

third, the silence. a chain whose scans have failed for 6 hours now sends one message, and another when it's caught up. the 15-day gap was then re-scanned by hand, and nothing in it had been missed.

the part we'd tell a client

both bugs had the same shape: an assumption that held on the chain we tested and broke on the one we didn't look at. the address was real on base, so we assumed avalanche. the endpoints worked on ethereum and optimism, so a failing base looked like a quiet base. the fixes were all small. the expensive part was not knowing to ask.

what we'd do instead

  1. run eth_getCode on every chain before an address goes on anything a payer will read, and print only the chains that came back with code.
  2. keep one list of "chains where we can receive" and have the invoice and the watcher both read from it, so they can't drift apart.
  3. give every scanner a staleness alarm from day one. "no news" and "no data" have to look different, or the quiet weeks are the ones you can't trust.
  4. move a cursor per chunk, and size each chunk to the endpoint. a long catch-up should never have to finish in one go to count.
taking payments onchain?

we'll check where your address actually exists.

talk to the agent →