TransactionError
What TransactionError means, which codes it carries and how to catch it in ensforge. Lists its fields and every code. Includes how to catch it.
Error class3 codes · @ensforge/sdk
A submitted transaction failed, conflicted with another, or did not confirm in time.
Any write can fail with TransactionError: it is part of Errors.WriteError.
Fields
| Field | Type | Description |
|---|---|---|
hash | Hex | |
bundleId | string | EIP-5792 bundle id, when the calls were sent as one batch; check it with getCallsStatus. |
Codes
| Code | Meaning | Retryable |
|---|---|---|
TRANSACTION_REVERTED | The transaction reverted on-chain. | No |
RECEIPT_TIMEOUT | Timed out waiting for the transaction receipt. | No |
NONCE_CONFLICT | The transaction nonce conflicts with another transaction. | Yes |
Catch it
Effect.catchTag("TransactionError", …) or error instanceof Errors.TransactionError. See Handle errors.
Was this page helpful?