Skip to content

Get UserOperation Receipt

eth_getUserOperationReceipt

This endpoint returns a UserOperation receipt based on a hash (userOpHash) returned by eth_sendUserOperation.

Parameters

Body

ParamTypeDescriptionRequired
methodstringName of method in this case: eth_getUserOperationReceiptRequired
paramsarrayAn array consisting of the userop hash returned by eth_sendUserOperationRequired
idstringid for request determined by client for JSON RPC requestsRequired
jsonrpcstringJSON RPC version in this case 2.0.0Required

Request

{
  "method": "eth_getUserOperationReceipt",
  "params": [
    "0x10b68dfde047c51e2f4a500281a715710c7b1c0517b87ad0b48229042f61ac0e"
  ],
  "id": 1693369916,
  "jsonrpc": "2.0"
}

Response

null in case the UserOperation is not yet included in a block, or:

  • userOpHash the request hash
  • entryPoint
  • sender
  • nonce
  • paymaster the paymaster used for this userOp (or empty)
  • actualGasCost - actual amount paid (by account or paymaster) for this UserOperation
  • actualGasUsed - total gas used by this UserOperation (including preVerification, creation, validation and execution)
  • success string - did this execution completed without revert
  • reason in case of revert, this is the revert reason
  • logs the logs generated by this UserOperation (not including logs of other UserOperations in the same bundle)
  • receipt the TransactionReceipt object. Note that the returned TransactionReceipt is for the entire bundle, not only for this UserOperation.
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "userOpHash": "0x15178e60f1185869b7001608bc4f57ebd9064b77c7f8cc08db1da75464b535b3",
    "entryPoint": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
    "sender": "0x500081E858F7a214cfe4F729f0321ee0e24F900F",
    "nonce": 221,
    "success": "true",
    "paymaster": "0x00000f79b7faf42eebadba19acc07cd08af44789",
    "actualGasCost": 28984619670071690,
    "actualGasUsed": 239053,
    "reason": "",
    "logs": [
      {
        "address": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
        "topics": [
          "0x49628fd1471006c1482da88028e9ce4dbb080b815c9b0344d39e5a8e6ec1419f",
          "0x15178e60f1185869b7001608bc4f57ebd9064b77c7f8cc08db1da75464b535b3",
          "0x000000000000000000000000500081e858f7a214cfe4f729f0321ee0e24f900f",
          "0x00000000000000000000000000000f79b7faf42eebadba19acc07cd08af44789"
        ],
        "data": "0x00000000000000000000000000000000000000000000000000000000000000dd00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000066f95ba762698a000000000000000000000000000000000000000000000000000000000003a5cd",
        "blockNumber": "0x3494a41",
        "transactionHash": "0xd4c6ca8929833176505e4a1ee5693a5f5116415414ab672d0949bbd82df4ff54",
        "transactionIndex": "0x68",
        "blockHash": "0x93412643414b664e4fd3467ff58c3bcbd6dc83b84080e1f044e7a16fcf015806",
        "logIndex": "0x213",
        "removed": false
      }
    ],
    "receipt": {
      "blockHash": "0x93412643414b664e4fd3467ff58c3bcbd6dc83b84080e1f044e7a16fcf015806",
      "blockNumber": "0x3494a41",
      "contractAddress": null,
      "cumulativeGasUsed": "0xd84002",
      "effectiveGasPrice": "0x1c3aeca5b2",
      "from": "0xe9a6da2678a8ee15923e4f9f636c1aec7e5c1b69",
      "gasUsed": "0x2ff45",
      "logs": [
        {
          "address": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
          "topics": [
            "0xbb47ee3e183a558b1a2ff0874b079f3fc5478b7454eacf2bfc5af2ff5878f972"
          ],
          "data": "0x",
          "blockNumber": "0x3494a41",
          "transactionHash": "0xd4c6ca8929833176505e4a1ee5693a5f5116415414ab672d0949bbd82df4ff54",
          "transactionIndex": "0x68",
          "blockHash": "0x93412643414b664e4fd3467ff58c3bcbd6dc83b84080e1f044e7a16fcf015806",
          "logIndex": "0x20f",
          "removed": false
        },
        {
          "address": "0x1758f42af7026fbbb559dc60ece0de3ef81f665e",
          "topics": [
            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
            "0x0000000000000000000000000000000000000000000000000000000000000000",
            "0x000000000000000000000000500081e858f7a214cfe4f729f0321ee0e24f900f",
            "0x000000000000000000000000000000000000000000000000000000000000350d"
          ],
          "data": "0x",
          "blockNumber": "0x3494a41",
          "transactionHash": "0xd4c6ca8929833176505e4a1ee5693a5f5116415414ab672d0949bbd82df4ff54",
          "transactionIndex": "0x68",
          "blockHash": "0x93412643414b664e4fd3467ff58c3bcbd6dc83b84080e1f044e7a16fcf015806",
          "logIndex": "0x210",
          "removed": false
        },
        {
          "address": "0x1758f42af7026fbbb559dc60ece0de3ef81f665e",
          "topics": [
            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
            "0x0000000000000000000000000000000000000000000000000000000000000000",
            "0x000000000000000000000000500081e858f7a214cfe4f729f0321ee0e24f900f",
            "0x000000000000000000000000000000000000000000000000000000000000350e"
          ],
          "data": "0x",
          "blockNumber": "0x3494a41",
          "transactionHash": "0xd4c6ca8929833176505e4a1ee5693a5f5116415414ab672d0949bbd82df4ff54",
          "transactionIndex": "0x68",
          "blockHash": "0x93412643414b664e4fd3467ff58c3bcbd6dc83b84080e1f044e7a16fcf015806",
          "logIndex": "0x211",
          "removed": false
        },
        {
          "address": "0x00000f79b7faf42eebadba19acc07cd08af44789",
          "topics": [
            "0x5dc1c754041954fe976773fa441397a7928c7127a1c83904214a7d2563399007",
            "0x00000000000000000000000095857bffc1cd833cd196af29eb0f61dbc66db4ad",
            "0x00000000000000000000000000000000000000000000000000680258c2b9bf60"
          ],
          "data": "0x",
          "blockNumber": "0x3494a41",
          "transactionHash": "0xd4c6ca8929833176505e4a1ee5693a5f5116415414ab672d0949bbd82df4ff54",
          "transactionIndex": "0x68",
          "blockHash": "0x93412643414b664e4fd3467ff58c3bcbd6dc83b84080e1f044e7a16fcf015806",
          "logIndex": "0x212",
          "removed": false
        },
        {
          "address": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
          "topics": [
            "0x49628fd1471006c1482da88028e9ce4dbb080b815c9b0344d39e5a8e6ec1419f",
            "0x15178e60f1185869b7001608bc4f57ebd9064b77c7f8cc08db1da75464b535b3",
            "0x000000000000000000000000500081e858f7a214cfe4f729f0321ee0e24f900f",
            "0x00000000000000000000000000000f79b7faf42eebadba19acc07cd08af44789"
          ],
          "data": "0x00000000000000000000000000000000000000000000000000000000000000dd00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000066f95ba762698a000000000000000000000000000000000000000000000000000000000003a5cd",
          "blockNumber": "0x3494a41",
          "transactionHash": "0xd4c6ca8929833176505e4a1ee5693a5f5116415414ab672d0949bbd82df4ff54",
          "transactionIndex": "0x68",
          "blockHash": "0x93412643414b664e4fd3467ff58c3bcbd6dc83b84080e1f044e7a16fcf015806",
          "logIndex": "0x213",
          "removed": false
        },
        {
          "address": "0x0000000000000000000000000000000000001010",
          "topics": [
            "0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4",
            "0x0000000000000000000000000000000000000000000000000000000000001010",
            "0x0000000000000000000000005ff137d4b0fdcd49dca30c7cf57e578a026d2789",
            "0x000000000000000000000000e9a6da2678a8ee15923e4f9f636c1aec7e5c1b69"
          ],
          "data": "0x0000000000000000000000000000000000000000000000000066f95ba762698a000000000000000000000000000000000000000000000d2558eb687d4ecbfc1b000000000000000000000000000000000000000000000001f67a346c178ece90000000000000000000000000000000000000000000000d2558846f21a7699291000000000000000000000000000000000000000000000001f6e12dc7bef1381a",
          "blockNumber": "0x3494a41",
          "transactionHash": "0xd4c6ca8929833176505e4a1ee5693a5f5116415414ab672d0949bbd82df4ff54",
          "transactionIndex": "0x68",
          "blockHash": "0x93412643414b664e4fd3467ff58c3bcbd6dc83b84080e1f044e7a16fcf015806",
          "logIndex": "0x214",
          "removed": false
        },
        {
          "address": "0x0000000000000000000000000000000000001010",
          "topics": [
            "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63",
            "0x0000000000000000000000000000000000000000000000000000000000001010",
            "0x000000000000000000000000e9a6da2678a8ee15923e4f9f636c1aec7e5c1b69",
            "0x0000000000000000000000009ead03f7136fc6b4bdb0780b00a1c14ae5a8b6d0"
          ],
          "data": "0x00000000000000000000000000000000000000000000000000191f2dcd880800000000000000000000000000000000000000000000000001f7c8dcd2c42fd5a0000000000000000000000000000000000000000000000056c7c81680407edc61000000000000000000000000000000000000000000000001f7afbda4f6a7cda0000000000000000000000000000000000000000000000056c7e135ae0e06e461",
          "blockNumber": "0x3494a41",
          "transactionHash": "0xd4c6ca8929833176505e4a1ee5693a5f5116415414ab672d0949bbd82df4ff54",
          "transactionIndex": "0x68",
          "blockHash": "0x93412643414b664e4fd3467ff58c3bcbd6dc83b84080e1f044e7a16fcf015806",
          "logIndex": "0x215",
          "removed": false
        }
      ],
      "logsBloom": "0x000000000000010000000000000000000000000000000000000000000000020000090000000000040002001100400000001081000000000000000200000000000000000000000000000000280000008000080000000020000001000000000000000000000a000000000000000000280000000000080000408080001000080000004008000004000000000000000000020000000000000000000000000000000020000000000400000050000000000000010000000000000000000220000000400000000200000800100102000000004020400804040080000012c000800020200000000000000000000000040000000000000000000200000000000000100000",
      "status": "0x1",
      "to": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
      "transactionHash": "0xd4c6ca8929833176505e4a1ee5693a5f5116415414ab672d0949bbd82df4ff54",
      "transactionIndex": "0x68",
      "type": "0x2"
    }
  }
}
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "userOpHash": "0x5caafe8e6938bfeb4fc58fc315697e449253432e1356272f6831a0cc50a1ab43",
    "entryPoint": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
    "sender": "0x332D80150c7cD4Ed2BeE9cA8C88310caDE813Eb0",
    "nonce": 5,
    "success": "true",
    "paymaster": "0x",
    "actualGasCost": 22057516683878,
    "actualGasUsed": 1476709,
    "reason": "",
    "logs": [
      {
        "address": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
        "topics": [
          "0x49628fd1471006c1482da88028e9ce4dbb080b815c9b0344d39e5a8e6ec1419f",
          "0x5caafe8e6938bfeb4fc58fc315697e449253432e1356272f6831a0cc50a1ab43",
          "0x000000000000000000000000332d80150c7cd4ed2bee9ca8c88310cade813eb0",
          "0x0000000000000000000000000000000000000000000000000000000000000000"
        ],
        "data": "0x0000000000000000000000000000000000008238d36329d3000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000140faa7252660000000000000000000000000000000000000000000000000000000000168865",
        "blockNumber": "0x708111d",
        "transactionHash": "0xd281284c2bcd6942dde64066fddc2f60f1ca28d5bca412f785a1934b4a98811a",
        "transactionIndex": "0x4",
        "blockHash": "0x2a47952a550db19dbbc1791cf3658c70d671ffa387d42bf75c79c6cb10004203",
        "logIndex": "0xd",
        "removed": false
      }
    ],
    "receipt": {
      "blockHash": "0x2a47952a550db19dbbc1791cf3658c70d671ffa387d42bf75c79c6cb10004203",
      "blockNumber": "0x708111d",
      "contractAddress": null,
      "cumulativeGasUsed": "0x177f26",
      "effectiveGasPrice": "0xe3eb6e",
      "from": "0x962718024f19a40959dc25f1546216b3293f1da1",
      "gasUsed": "0x129bcd",
      "l1Fee": "0x6a71cc3bb7",
      "l1GasPrice": "0x5f3d33f38",
      "l1GasUsed": "0x3310",
      "logs": [
        {
          "address": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
          "topics": [
            "0x2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4",
            "0x000000000000000000000000332d80150c7cd4ed2bee9ca8c88310cade813eb0"
          ],
          "data": "0x000000000000000000000000000000000000000000000000000017390089f0b0",
          "blockNumber": "0x708111d",
          "transactionHash": "0xd281284c2bcd6942dde64066fddc2f60f1ca28d5bca412f785a1934b4a98811a",
          "transactionIndex": "0x4",
          "blockHash": "0x2a47952a550db19dbbc1791cf3658c70d671ffa387d42bf75c79c6cb10004203",
          "logIndex": "0x3",
          "removed": false
        },
        {
          "address": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
          "topics": [
            "0xbb47ee3e183a558b1a2ff0874b079f3fc5478b7454eacf2bfc5af2ff5878f972"
          ],
          "data": "0x",
          "blockNumber": "0x708111d",
          "transactionHash": "0xd281284c2bcd6942dde64066fddc2f60f1ca28d5bca412f785a1934b4a98811a",
          "transactionIndex": "0x4",
          "blockHash": "0x2a47952a550db19dbbc1791cf3658c70d671ffa387d42bf75c79c6cb10004203",
          "logIndex": "0x4",
          "removed": false
        },
        {
          "address": "0x6cd3f878852769e04a723a5f66ca7dd4d9e38a6c",
          "topics": [
            "0xb648d3644f584ed1c2232d53c46d87e693586486ad0d1175f8656013110b714e"
          ],
          "data": "0x00000000000000000000000005f6f46e5eed6dec1d8cc3c6e8169d447966844d000000000000000000000000649f44cac3276557d03223dbf6395af65b11c11c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024333ef2530000000000000000000000000000000000000000000000000ee90f30ce23e9c800000000000000000000000000000000000000000000000000000000",
          "blockNumber": "0x708111d",
          "transactionHash": "0xd281284c2bcd6942dde64066fddc2f60f1ca28d5bca412f785a1934b4a98811a",
          "transactionIndex": "0x4",
          "blockHash": "0x2a47952a550db19dbbc1791cf3658c70d671ffa387d42bf75c79c6cb10004203",
          "logIndex": "0x5",
          "removed": false
        },
        {
          "address": "0x47649022380d182da8010ae5d257fea4227b21ff",
          "topics": [
            "0x60738523f766167cfd2310c61593dc795bc9d77de9276ed7e0c514df55e0a2c9"
          ],
          "data": "0x506572707356324d61726b657453657474696e67730000000000000000000000706572707356324d696e4b6565706572466565000000000000000000000000000000000000000000000000000000000000000000000000000ee90f30ce23e9c8",
          "blockNumber": "0x708111d",
          "transactionHash": "0xd281284c2bcd6942dde64066fddc2f60f1ca28d5bca412f785a1934b4a98811a",
          "transactionIndex": "0x4",
          "blockHash": "0x2a47952a550db19dbbc1791cf3658c70d671ffa387d42bf75c79c6cb10004203",
          "logIndex": "0x6",
          "removed": false
        },
        {
          "address": "0x649f44cac3276557d03223dbf6395af65b11c11c",
          "topics": [
            "0x19aa707c9ee917e97ea0ac9146e39c123d4bd88e1f2cd719d32a8a54fe409902"
          ],
          "data": "0x0000000000000000000000000000000000000000000000000ee90f30ce23e9c8",
          "blockNumber": "0x708111d",
          "transactionHash": "0xd281284c2bcd6942dde64066fddc2f60f1ca28d5bca412f785a1934b4a98811a",
          "transactionIndex": "0x4",
          "blockHash": "0x2a47952a550db19dbbc1791cf3658c70d671ffa387d42bf75c79c6cb10004203",
          "logIndex": "0x7",
          "removed": false
        },
        {
          "address": "0x6cd3f878852769e04a723a5f66ca7dd4d9e38a6c",
          "topics": [
            "0x6895c13664aa4f67288b25d7a21d7aaa34916e355fb9b6fae0a139a9085becb8",
            "0x00000000000000000000000005f6f46e5eed6dec1d8cc3c6e8169d447966844d"
          ],
          "data": "0x",
          "blockNumber": "0x708111d",
          "transactionHash": "0xd281284c2bcd6942dde64066fddc2f60f1ca28d5bca412f785a1934b4a98811a",
          "transactionIndex": "0x4",
          "blockHash": "0x2a47952a550db19dbbc1791cf3658c70d671ffa387d42bf75c79c6cb10004203",
          "logIndex": "0x8",
          "removed": false
        },
        {
          "address": "0x05f6f46e5eed6dec1d8cc3c6e8169d447966844d",
          "topics": [
            "0xe22b4203e51a04604258271faf98bf06a6f25e13004a7bce95940d2a2adbae8c"
          ],
          "data": "0x0000000000000000000000000000000000000000000000000ee90f30ce23e9c8000000000000000000000000000000000000000000000000000000006603fbf3",
          "blockNumber": "0x708111d",
          "transactionHash": "0xd281284c2bcd6942dde64066fddc2f60f1ca28d5bca412f785a1934b4a98811a",
          "transactionIndex": "0x4",
          "blockHash": "0x2a47952a550db19dbbc1791cf3658c70d671ffa387d42bf75c79c6cb10004203",
          "logIndex": "0x9",
          "removed": false
        },
        {
          "address": "0x0ea09d97b4084d859328ec4bf8ebcf9ecca26f1d",
          "topics": [
            "0xfc48da481fcf86ce12ffab287c2f0876771bfd89d024ed05e59d8640035d603e"
          ],
          "data": "0xfffffffffffffffffffffffffffffffffffffffffffffffe93f872f219b89da4000000000000000000000000000000000000000000000000000d142000f287010000000000000000000000000000000000000000000000000000000000029304000000000000000000000000000000000000000000000000000000006603fbf3",
          "blockNumber": "0x708111d",
          "transactionHash": "0xd281284c2bcd6942dde64066fddc2f60f1ca28d5bca412f785a1934b4a98811a",
          "transactionIndex": "0x4",
          "blockHash": "0x2a47952a550db19dbbc1791cf3658c70d671ffa387d42bf75c79c6cb10004203",
          "logIndex": "0xa",
          "removed": false
        },
        {
          "address": "0x0ea09d97b4084d859328ec4bf8ebcf9ecca26f1d",
          "topics": [
            "0xc0d933baa356386a245ade48f9a9c59db4612af2b5b9c17de5b451c628760f43",
            "0x0000000000000000000000000000000000000000000000000000000000003e48",
            "0x000000000000000000000000a18b3a6dd5ec7d4422788de09268bd8283fd0bda"
          ],
          "data": "0x0000000000000000000000000000000000000000000072beda5666bd1574c371fffffffffffffffffffffffffffffffffffffffffffffcad7182612ec9180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a1a0479544ceb50750000000000000000000000000000000000000000000000000000000000029304000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003c4dd6073b48b54973",
          "blockNumber": "0x708111d",
          "transactionHash": "0xd281284c2bcd6942dde64066fddc2f60f1ca28d5bca412f785a1934b4a98811a",
          "transactionIndex": "0x4",
          "blockHash": "0x2a47952a550db19dbbc1791cf3658c70d671ffa387d42bf75c79c6cb10004203",
          "logIndex": "0xb",
          "removed": false
        },
        {
          "address": "0x0ea09d97b4084d859328ec4bf8ebcf9ecca26f1d",
          "topics": [
            "0x9deb3648ccf8efc44205985ac6ead4ffb30791fea9ce7f9437ae398b31cf9d5a",
            "0x000000000000000000000000a18b3a6dd5ec7d4422788de09268bd8283fd0bda"
          ],
          "data": "0x0000000000000000000000000000000000000000000000000000000000000001ffffffffffffffffffffffffffffffffffffffffffffffd4a1c50e94e78000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006603fbf3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ee90f30ce23e9c84b57454e54410000000000000000000000000000000000000000000000000000",
          "blockNumber": "0x708111d",
          "transactionHash": "0xd281284c2bcd6942dde64066fddc2f60f1ca28d5bca412f785a1934b4a98811a",
          "transactionIndex": "0x4",
          "blockHash": "0x2a47952a550db19dbbc1791cf3658c70d671ffa387d42bf75c79c6cb10004203",
          "logIndex": "0xc",
          "removed": false
        },
        {
          "address": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
          "topics": [
            "0x49628fd1471006c1482da88028e9ce4dbb080b815c9b0344d39e5a8e6ec1419f",
            "0x5caafe8e6938bfeb4fc58fc315697e449253432e1356272f6831a0cc50a1ab43",
            "0x000000000000000000000000332d80150c7cd4ed2bee9ca8c88310cade813eb0",
            "0x0000000000000000000000000000000000000000000000000000000000000000"
          ],
          "data": "0x0000000000000000000000000000000000008238d36329d3000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000140faa7252660000000000000000000000000000000000000000000000000000000000168865",
          "blockNumber": "0x708111d",
          "transactionHash": "0xd281284c2bcd6942dde64066fddc2f60f1ca28d5bca412f785a1934b4a98811a",
          "transactionIndex": "0x4",
          "blockHash": "0x2a47952a550db19dbbc1791cf3658c70d671ffa387d42bf75c79c6cb10004203",
          "logIndex": "0xd",
          "removed": false
        }
      ],
      "logsBloom": "0x004000100000100400000000800000080000000440008000000000000020080000080000002000000002000100400000001108000001000080000200000000000000000000000000000000000080000000000101010001000100000000202000800004000a0000000000080000010800000000000000000000000002000200000000000020100004000000000000000002000000000000400000000000500000000800000000000000400000000008000a00000020000040000002000000000000000008000000000001000000002000000000000020000004000000000120000040000002000000010000000200000210000000000006000000000000000000",
      "status": "0x1",
      "to": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
      "transactionHash": "0xd281284c2bcd6942dde64066fddc2f60f1ca28d5bca412f785a1934b4a98811a",
      "transactionIndex": "0x4",
      "type": "0x2"
    }
  }
}