Skip to content

Commit fe9c8cc

Browse files
committed
Add error codes.
Signed-off-by: bgravenorst <[email protected]>
1 parent 1221f08 commit fe9c8cc

File tree

4 files changed

+15
-74
lines changed

4 files changed

+15
-74
lines changed
Lines changed: 2 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,2 @@
1-
import Tabs from "@theme/Tabs"
2-
import TabItem from "@theme/TabItem"
3-
4-
The 32-bytehash of the user operation (`userOpHash`). This hash uniquely identifies the user operation
5-
and can be used to track its status.
6-
7-
### Example
8-
9-
Replace `<YOUR-API-KEY>` with an API key from your [MetaMask Developer dashboard](https://developer.metamask.io/).
10-
11-
#### Request
12-
13-
<Tabs>
14-
<TabItem value="curl">
15-
16-
```bash
17-
curl http://mainnet.infura.io/v3/<YOUR-API-KEY> \
18-
-X POST \
19-
-H "Content-Type: application/json" \
20-
-d '{
21-
"jsonrpc": "2.0",
22-
"method": "eth_sendUserOperation",
23-
"params": [
24-
{
25-
"sender": "0x5a6b47F4131bf1feAFA56A05573314BcF44C9149",
26-
"nonce": "0x845ADB2C711129D4F3966735ED98A9F09FC4CE5700000000000000000000",
27-
"factory": "0xd703aaE79538628d27099B8c4f621bE4CCd142d5",
28-
"factoryData": "0xc5265d5d000000000000000000000000aac5d4240af87249b3f71bc8e4a2cae074a3e419",
29-
"callData": "0xe9ae5c5300000000000000000000000000000000000000000000000000000000000000000000000000",
30-
"callGasLimit": "0x13880",
31-
"verificationGasLimit": "0x60B01",
32-
"preVerificationGas": "0xD3E3",
33-
"maxPriorityFeePerGas": "0x3B9ACA00",
34-
"maxFeePerGas": "0x7A5CF70D5",
35-
"paymaster": "0x",
36-
"paymasterVerificationGasLimit": "0x0",
37-
"paymasterPostOpGasLimit": "0x0",
38-
"paymasterData": null,
39-
"signature": "0xa6cc6589c8bd561cfd68d7b6b0757ef6f208e7438782939938498eee7d703260137856c840c491b3d415956265e81bf5c2184a725be2abfc365f7536b6af525e1c"
40-
},
41-
"0x0000000071727De22E5E9d8BAf0edAc6f37da032"
42-
],
43-
"id": 1
44-
}'
45-
```
46-
47-
</TabItem>
48-
</Tabs>
49-
50-
#### Response
51-
52-
<Tabs>
53-
<TabItem value="JSON">
54-
55-
```JSON
56-
{
57-
"jsonrpc": "2.0",
58-
"id": 1,
59-
"result": "0x4c31ae84205a9c862dd8d0822f427fb516448451850ee6f65351951f6a2b2154"
60-
}
61-
```
62-
63-
</TabItem>
64-
</Tabs>
1+
The 32-byte hash of the user operation (`userOpHash`). This hash uniquely identifies the user operation
2+
and can be used to track its status.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Common error responses when simulation fails:
2+
3+
| Error Code | Description |
4+
| :------------------------| :------------------------------------------------- |
5+
| `AA23` | User operation reverted during simulation. |
6+
| `UserOperationReverted` | User operation execution failed during simulation. |
7+
| `SimulateValidation` | Validation failed for the user operation. |

services/reference/_partials/bundler/_pimlico_simulateassetchanges-response.mdx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,3 @@ import TabItem from "@theme/TabItem"
163163

164164
</TabItem>
165165
</Tabs>
166-
167-
## Errors
168-
169-
Common error responses when simulation fails:
170-
171-
| Error Code | Description |
172-
| :------------------------| :------------------------------------------------- |
173-
| `AA23` | User operation reverted during simulation. |
174-
| `UserOperationReverted` | User operation execution failed during simulation. |
175-
| `SimulateValidation` | Validation failed for the user operation. |

services/reference/ethereum/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,9 @@ import Request from "/services/reference/_partials/bundler/_pimlico_simulateasse
4242
import Response from "/services/reference/_partials/bundler/_pimlico_simulateassetchanges-response.mdx"
4343

4444
<Response />
45+
46+
## Errors
47+
48+
import Errors from "/services/reference/_partials/bundler/_pimlico_simulateassetchanges-errors.mdx"
49+
50+
<Errors />

0 commit comments

Comments
 (0)