wearenotabank Doku EN
Doku · Status
Doku

Was der Status eines Safes sagt

Diese Seite erklärt, was das SDK mit einem Aufruf über einen Safe aus den Chains liest: den Zustand je Chain, die Token und die Übertragungen. Zu jedem Wert steht dort, was der Integrator dann tut. Das SDK speichert nichts; jeder Wert ist die Antwort des RPC-Endpunkts des Integrators im Moment des Aufrufs.

Der Leitfaden unten steht auf Englisch, weil wir ihn unverändert aus dem Repository der SDKs übernehmen.

Status

What the SDK derives from the chains about a Safe, and what each value asks of the integrator. Index: README.md. Related: running.md, recovery.md.

One call, nothing kept

status reads, on each chain, the code at the contracts the release record pins, whether the Safe has code, its fallback handler and its enabled modules, the store's seq and row for the Safe, and the seq the sweep module's documents belong to. For each token of a chain with a stored row it reads ComposableCoW's record of the conditional order, the balance and the oracle's value. With transfers it also reads the Safe's burns and what became of them. It builds no transaction and sends nothing.

const status = await sdk.status({ safe, chains: [8453, 42161], transfers: { fromBlock: { 42161: arbitrumBlock } } });
final status = await sdk.status(StatusInput(  safe: safe,  chains: [8453, 42161],  transfers: TransfersInput(fromBlock: {42161: arbitrumBlock}),));

The SDK keeps no state, so every value is the answer of the integrator's RPC at the moment of the call. An RPC that lies or lags makes a status stale or wrong. It cannot change where a transaction the SDK builds goes, because every address a transaction goes to comes from the release record. A read that fails is read-failed, never a guess. transfers needs iris in the configuration, and an answer of Iris that is not the burn's message is invalid-iris-answer.

A chain of the Safe

The values are decided in this order. lag is measured against the highest seq stored among the chains asked for.

state Meaning What the integrator does
code-hash-mismatch a contract the record pins has other code on the chain; mismatches names each one nothing is built for the chain: this version does not support it. Check the advisories and the release records (migration-and-exit.md).
undeployed the Safe has no code there buildDeploy with the firstApply of buildFirstApply (setup.md)
handler-replaced the Safe's fallback handler is the router of no known release, so orders and the 4337 path stop the owners put the router back with a Safe transaction of their own. buildArm is refused meanwhile; apply, burn and the fallback burn stay buildable.
two-versions the modules of two releases are enabled at once buildMigration to one version (migration-and-exit.md)
bare the sweep and bridge modules are off and nothing was ever stored: a plain Safe with the router and the 4337 module buildApply builds nothing for it (the lag is module-not-enabled). Enable the release's modules first: buildMigration builds a re-enable step for the chain, and its fresh message is nothing-stored, so then build the first configuration with buildConfiguration, have it signed, and buildApply (migration-and-exit.md)
disabled a module is off where a configuration was stored; the stored configuration applies again when the module is enabled buildMigration re-enables the release's modules
lagging the store holds a lower seq than the newest on the chains asked for buildApply (running.md)
enabled the modules are on and no configuration was stored yet buildApply
not-synced the store holds a seq the documents have not caught up with buildApply builds the sync that closes it
off the stored row for the chain is off, or the message has no row for it nothing, unless the owners want it on: a new message
configured the newest seq is stored, its documents are synced and the row is on; seq says which nothing

A chain also reports its stored seq, the documents' seq, the lag, the two modules, the releases whose modules are enabled and the fallback handler.

A token

Reported for a chain with a stored row. The values are decided in this order:

state Meaning What the integrator does
excluded the token is on the row's excluded list nothing
unsupported the row's oracle does not list it, or gives no USD value for the balance nothing is swept; the token waits
armed its conditional order is live in ComposableCoW nothing
dust no live order, and a balance below the row's dust limit nothing: arm would do nothing
dropped no live order, and a balance at or above the dust limit buildArm (running.md)
unarmed no live order, and none of the token nothing

Each token carries its balance, whether its order is live and, for a token with no live order and a balance, the oracle's value in USD (usdValue). tokens in the input names the tokens to report per chain; the row's oracle's list is used when it is left out.

A transfer

With transfers, the Safe's USDC and its burns from the blocks given:

state Meaning What the integrator does
held the Safe's USDC balance on a source chain; burnRefusal says why burn would not be built now, and is empty when it would; burnCauses says why Circle's burn would fail now, as far as a public view shows it buildBurn when burnRefusal and burnCauses are empty, otherwise wait; with a cause, show the owners the message of A burn that keeps failing
burnt the burn happened; Circle's attestation is not there yet, or Iris could not be asked ask again later
attested the message and its attestation are ready buildMint (recovery.md) if the target chain has not received it
minted the target chain received the message nothing
expired the message passed its expiration block on the target chain buildMint with reattest: true

A burn whose attestation Iris cannot give yet stays burnt, and its attestation says pending or unreachable.

A burn that keeps failing

burnRefusal is the bridge module's own rule: the SDK would not build burn now. Circle's contracts have rules of their own, and a burn the module accepts can still fail there. While it fails, the burn hook of each sale fails and is ignored, and the carrier slice is still sold, at least once in every 30-minute bucket and again at every change of the oracle's answer inside it, each for the wrapped native token that the sweep turns back into USDC, with no burn behind it (spec/residuals.md, "The carrier slice is sold again at every change of the oracle's answer while Circle's burn keeps failing"). A change of the answer makes a new slice order, so the rate follows the feeds: measured over one day on 2026-12-03, from all twelve Chainlink feeds that price the slice, it was a few times the old figure of one slice a bucket on Ethereum and Plasma, several times it on Base, and tens to more than a hundred times it on Avalanche C-Chain, Arbitrum One and Polygon PoS (the residual has the count per chain, the window, the feeds and how they were read). Each slice costs the Safe the gas of one settlement and its room, if solvers fill it (costs.md; the cost per day on each chain, with the arithmetic, is in the residual's text, and those costs are ceilings: they hold only while the burn fails all day, a watch-tower posts every new order and a solver fills each one before the next change). On the fast chains a slice order's price lives for half of the orders under a minute on Polygon PoS and Arbitrum One and under a minute and a half on Avalanche C-Chain, so the slice may be hard to fill there and fewer slices may be sold than the rate says. So status reads, for each held entry, what Circle's contracts say, with eth_call and no key:

burnCauses Circle's view Means
above-burn-limit TokenMinterV2.burnLimitsPerMessage(USDC) (the minter is TokenMessengerV2.localMinter()) the balance is above Circle's per-message limit, or the limit is 0: the burn reverts, every time. The limit was 10,000,000 USDC on each of the six chains on 2026-12-03 (spec/residuals.md), and burnLimit carries the value read. The burn always takes the whole balance, so it never takes the part below the limit
minter-paused TokenMinterV2.paused() Circle's minter is paused: the burn reverts
transmitter-paused MessageTransmitterV2.paused() Circle's message transmitter is paused: the burn reverts
safe-denylisted TokenMessengerV2.isDenylisted(safe) the Safe is on the token messenger's deny list: the burn reverts. The messenger checks tx.origin as well, which status cannot know

burnUnread names the checks whose view could not be read (burn-limit, minter-paused, transmitter-paused, denylist): the call failed or did not decode, for example after Circle changed a contract. Nothing is guessed for it, so an empty burnCauses with a non-empty burnUnread is not a clean bill. Three things cannot be read: Circle's minimum fee above the row's maxFee, because no contract holds it as a view and the SDKs read no Circle fee endpoint (an app that wants it asks Circle's own fee endpoint itself, and shows what it finds as its own reading); the tx.origin side of the deny list; and the block list of the USDC token. A burn can fail for one of them with burnCauses empty.

for (const held of status.transfers.filter((transfer) => transfer.state === 'held')) {  if (held.burnCauses.length > 0) showBurnFailing(held.sourceChainId, held.burnCauses, held.burnLimit);}
for (final held in status.transfers.where((transfer) => transfer.state == TransferState.held)) {  if (held.burnCauses.isNotEmpty) showBurnFailing(held.sourceChainId, held.burnCauses, held.burnLimit);}

What an app shows the owners in that state. Say, in the app's own words, three things: the burn of the USDC on that chain is failing, and the cause when burnCauses names one; a slice of that USDC is still sold while it fails, at least every 30 minutes and as often as the oracle's answer changes (from several an hour to several a minute, by chain, on the day measured), and each costs a little; and switching the bridge off stops the slices. To switch it off the owners sign a new message with sendStablecoinToTargetChain set to false and the app applies it on the chain (buildConfiguration, then buildApply); the choice is the message's, so it holds on each chain, and the USDC stays on each source chain until a later message turns the bridge on again. The other ways out are Circle's (the pause is lifted, the Safe is taken off the deny list, the limit is raised) and, for above-burn-limit, the owners' own (a transaction of theirs that spends or moves enough USDC to bring the balance below burnLimit). buildBurn and buildFallbackBurn are not refused for these causes: a fallback burn of a balance above the limit fails at Circle the same way, so an app does not offer it while above-burn-limit holds. Nothing of ours acts on the Safe meanwhile: there is no keeper to stop the slices, and an app that does not look leaves them running.