Repository navigation
Description
TL;DR
When a state transition is sent and the app gets a timeout or network error instead of a result, nobody knows whether it landed. Each feature handles this on its own and differently, so users can submit twice, pay twice, or have an identity blocked until the app restarts. This issue tracks one shared way to resend exactly the same signed transition and find out its outcome with proof.
User story
As an app developer using the SDK or platform-wallet, I want one consistent way to recover a state transition whose result I never received, to avoid duplicate submissions, double fees and identities stuck until restart.
Scenario
Actual behavior
- The app sends a state transition (document create, contract update, top-up, key update, token spend, …).
- The request times out or the connection drops; the outcome is unknown.
- Depending on the feature, the app rebuilds and re-signs it (may execute twice or use a new nonce), blocks the identity until restart, or cannot tell whether the transition can still land.
Expected behavior
- The app can resend the same signed bytes instead of building a new transition.
- The app can resolve the outcome (landed, failed, can no longer land) with proof, the same way for every state transition type.
- Holds placed while the outcome is unknown are released by one shared rule.
Detailed discussion
Existing per-feature issues and proposals this would cover:
- feat(sdk): high-level document APIs lack idempotent retry — timeout causes duplicate state transitions #3090: document APIs lack idempotent retry; a timeout causes duplicate state transitions
- DAPI: a non-blocking call to look up a state transition's status by hash (pending, committed, dropped or unknown) #5269: DAPI lookup of a state transition's status by hash
- platform-wallet: an identity update does not tell the caller which transition it signed, so its outcome after a restart can only be guessed #5690: an identity update does not expose the transition it signed
- platform-wallet: record an unconfirmed data contract update and reconcile it before signing a replacement #6067: record an unconfirmed contract update and reconcile it before signing a replacement
- feat(platform-wallet): let a wallet tell when a timed-out document create can no longer land (surface its nonce) #5927: surface the nonce of a timed-out document create
- Keep an unconfirmed identity top-up from Platform addresses pending across screen re-entry #6000: keep an unconfirmed identity top-up from Platform addresses pending
- Keep an unconfirmed key limits update pending across sheet re-entry #6063: keep an unconfirmed key limits update pending
- platform-wallet: release an unconfirmed token pool spend once its token anchor is proven pruned #6155: release an unconfirmed token pool spend once its anchor is proven pruned
- platform-wallet: retry shielded activity rows the host failed to store #6157: retry shielded activity rows the host failed to store
- Earlier outbox proposal: fix(sdk): preserve uncertain submission outcomes through shared broadcast #5556 (comment) (simplified away during the fix(sdk): preserve uncertain submission outcomes through shared broadcast #5556 review)
Options (to be decided; no implementation planned yet):
- A: prepare a signed transition before sending, then resume (resend and resolve) the same bytes.
- B: A plus a durable record of pending transitions in platform-wallet, so recovery survives restarts.
- C: server-side completeness (e.g. a "dropped" status and proofs for outcomes not covered today).
Out of scope
Implementation; this issue only collects the problem and the options.
🤖 Co-authored by Claudius the Magnificent AI Agent
Activity
Claudius-Maginificent commentedon Nov 29, 2026
Adding data contract create to the transition types this issue should cover; it is not in the list above.
PutContract(packages/rs-sdk/src/platform/transition/put_contract.rs) has the same two gaps as #3090 for documents:put_to_platform_and_wait_for_responsereturns the contract only on success. On an unknown outcome (a proof error after broadcast, orStateTransitionResultUnconfirmed) the caller loses the signed transition, so it cannot tell which contract ID Platform would assign and cannot look it up.prepare_contract_state_transitionand cannot be passed in, so a retry cannot reuse it. Only a same-nonce retry guarantees the user is not charged for a second contract.platform-wallet'screate_data_contract_with_signeris built on the same call and inherits both gaps.Downstream workaround: dashpay/dash-evo-tool#1230 rebuilds and signs the create transition itself (mirroring
PutContract) to know the ID and keep the nonce for retries. That PR is now on hold until this issue provides the shared recovery path for contract creation.🤖 Generated with Claude Code