> For the complete documentation index, see [llms.txt](https://docs.zama.org/protocol/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zama.org/protocol/sdk/go-and-rust-guide/guides/uncertain-transaction-outcomes.md). Agents can also search and read this documentation through its [MCP server](https://docs.zama.org/protocol/~gitbook/mcp).

# Resolve uncertain transaction outcomes

Reconcile uncertain transaction outcomes observed by Go and Rust applications.

Check your application's transaction records before repeating an SDK write that timed out, was cancelled, or lost its wallet connection.

{% hint style="warning" %}
Cancellation stops waiting; it cannot reverse a broadcast. A failed operation or a closed signer channel does not prove that no transaction was sent.
{% endhint %}

Record every transaction hash in your wallet's write path, together with the account, chain, nonce, and operation.

| Result                                                                                 | Next action                                                                  |
| -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| `SIGNING_REJECTED`                                                                     | Request another wallet action only after user approval                       |
| `SIGNING_FAILED` or `CHAIN_MISMATCH` before broadcast                                  | Correct the wallet or provider configuration                                 |
| `TRANSACTION_REVERTED`                                                                 | Inspect the revert and fix its cause before submitting another write         |
| `HCU_BLOCK_LIMIT_EXCEEDED`                                                             | Nothing was sent; submit again in a later block                              |
| `HCU_TRANSACTION_LIMIT_EXCEEDED`                                                       | Nothing was sent; split the work into smaller transactions                   |
| `TRANSACTION_OUTCOME_UNKNOWN`                                                          | Reconcile the recorded hash and account transactions before submitting again |
| Transport failure or cancellation after the wallet received the write                  | Treat the outcome as uncertain, whatever the error code                      |
| Cancellation, deadline, account change, or context close before the wallet received it | The operation fails with `CANCELLED`; nothing was sent                       |

`TRANSACTION_OUTCOME_UNKNOWN` also covers a closed signer channel, an invalid wallet reply, or a cancellation after the wallet received the write, even when no hash reached the daemon.

The SDK operation returns only an error code and message, not the hash. In Go, the built-in adapter exposes the hash as `BroadcastUncertainError.Hash` inside your wallet callback, so record it there.

Once a built-in adapter starts sending, cancellation does not interrupt the send. A process crash can still happen before you record the outcome. Check both pending and mined transactions for the account before issuing another write; the pending nonce alone cannot tell a lost send from an accepted one.

To restore a closed signer channel, see [Recover from disconnections](https://docs.zama.org/protocol/sdk/go-and-rust-guide/guides/recover-from-disconnections.md). To sign outside the SDK operation entirely, use [Offline signing](https://docs.zama.org/protocol/sdk/guides/offline.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.zama.org/protocol/sdk/go-and-rust-guide/guides/uncertain-transaction-outcomes.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
