Skip to content

Commit

Permalink
Remove mention of JSON-RPC API error codes from core ERC-4337 document
Browse files Browse the repository at this point in the history
  • Loading branch information
forshtat committed Sep 8, 2024
1 parent 7fdb2c6 commit 78573a9
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions ERCS/erc-4337.md
Original file line number Diff line number Diff line change
Expand Up @@ -520,23 +520,14 @@ The result `SHOULD` be set to the **userOpHash** if and only if the request pass

* If the UserOperation is valid, the client MUST return the calculated **userOpHash** for it
* in case of failure, MUST return an `error` result object, with `code` and `message`. The error code and message SHOULD be set as follows:
* **code: -32602** - invalid UserOperation struct/fields
* **code: -32500** - transaction rejected by entryPoint's simulateValidation, during wallet creation or validation
* The `message` field MUST be set to the FailedOp's "`AAxx`" error message from the EntryPoint
* **code: -32501** - transaction rejected by paymaster's validatePaymasterUserOp
* The `message` field SHOULD be set to the revert message from the paymaster
* The `data` field MUST contain a `paymaster` value
* **code: -32502** - transaction rejected because of opcode validation
* **code: -32503** - UserOperation out of time-range: either wallet or paymaster returned a time-range, and it has already expired (or will expire soon)
* The `data` field SHOULD contain the `validUntil` and `validAfter` values
* The `data` field SHOULD contain a `paymaster` value, if this error was triggered by the paymaster
* **code: -32504** - transaction rejected because paymaster is throttled/banned
* The `data` field SHOULD contain a `paymaster` value, depending on the failed entity
* **code: -32505** - transaction rejected because paymaster stake or unstake-delay is too low
* The `data` field SHOULD contain a `paymaster` value, depending on the failed entity
* The `data` field SHOULD contain a `minimumStake` and `minimumUnstakeDelay`
* **code: -32507** - transaction rejected because of wallet signature check failed (or paymaster signature, if the paymaster uses its data as signature)
* **code: -32508** - transaction rejected because paymaster balance can't cover all pending UserOperations.

##### Example:

Expand Down

0 comments on commit 78573a9

Please sign in to comment.