HcaError
What HcaError means, which codes it carries and how to catch it in ensforge. Lists its fields and every code. Includes how to catch it.
Error class11 codes · @ensforge/hca
An HCA (Hosted Contract Account) operation failed: the account, its session, an executor (bundler, Rhinestone) or the DAO's upgrade set.
Fields
| Field | Type | Description |
|---|---|---|
executor | string | Executor that failed, e.g. pimlico. |
Codes
| Code | Meaning | Retryable |
|---|---|---|
HCA_UNAVAILABLE | This chain has no ENS HCA deployment. | No |
HCA_NOT_VERIFIED | The account is not a verified ENS HCA of this owner. | No |
HCA_EXECUTOR_UNSUPPORTED | No configured executor can run this HCA operation. | No |
HCA_ACTION_NOT_ALLOWED | The HCA session policy does not allow this call. | No |
HCA_SESSION_INVALID | The HCA session is expired, revoked or for another resolver. | No |
HCA_BUNDLER_REJECTED | The bundler rejected the HCA UserOperation. | Yes |
HCA_PAYMASTER_REJECTED | The paymaster refused to sponsor the HCA UserOperation. | No |
HCA_EXECUTION_FAILED | The HCA execution failed. | No |
HCA_EXECUTION_TIMEOUT | The HCA execution was not included in time. | No |
HCA_UPGRADE_NOT_ALLOWED | The upgrade set or the new implementation's canUpgradeFrom check does not allow this HCA upgrade. | No |
HCA_SDK_UNSUPPORTED | The Rhinestone SDK does not support the standalone ENS HCA. | No |
Catch it
error instanceof HcaError. See Handle errors.
Was this page helpful?