Entrypoint Errors
AA22: Time-Based Signature Mismatch
Addressing timestamp-related signature issues in user operations
Your user operation’s signature is invalid due to a timestamp mismatch. This occurs when:
- The current
block.timestamp
is later than thevalidUntil
time - The current
block.timestamp
is earlier than thevalidAfter
time
These time constraints are derived from the validationData
(a bytes32
field) returned by the smart account’s validateUserOp
function.
Resolution Strategies
-
For Time-Sensitive Operations:
- Double-check your
validAfter
andvalidUntil
settings - Ensure your operation is submitted within the specified timeframe
- Double-check your
-
For Standard Operations:
- Set both
validAfter
andvalidUntil
to0
- Set both
Pro Tip: For non-time-sensitive operations without aggregators, simplify your validateUserOp
function:
- Return
uint(0)
for valid signatures - Return
uint(1)
for invalid signatures