@revertwtf/aa
v0.1.2
Published
ERC-4337 AA code parser, FailedOp decoder, and explainer
Maintainers
Readme
@revertwtf/aa
ERC-4337 / UserOperation error utilities.
pnpm add @revertwtf/aaparseAACode(string)- pullAAxxout of any reason text and map to a known code + category.decodeEntryPointError(hex)- decodeFailedOp/FailedOpWithRevert/SignatureValidationFailed, then recursively decode anyinnerrevert bytes.explainAAError(input)- produceExplanation[]for AA failures.
import { explainAAError } from "@revertwtf/aa/explain";
explainAAError('FailedOp(0, "AA24 signature error")');For browser bundles, prefer @revertwtf/aa/parse or @revertwtf/aa/codes when
you only need the AAxx dictionary. Keep @revertwtf/aa/explain on a server/API
boundary because it can use the full catalog-backed parser.
