Skip to content

eth_getUserOperationReceipt

This method fetches the receipt of a user operation, given the userOpHash. If the receipt is not available, it will return null.

Request

{
    "jsonrpc": "2.0",
    "method": "eth_getUserOperationReceipt",
    "params": ["0xa5a579c6fd86c2d8a4d27f5bb22796614d3a31bbccaba8f3019ec001e001b95f"],
    "id": 1
}

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
        "userOpHash": "0xa5a579c6fd86c2d8a4d27f5bb22796614d3a31bbccaba8f3019ec001e001b95f",
        "sender": "0x8C6bdb488F664EB98E12cB2671fE2389Cc227D33",
        "nonce": "0x18554d9a95404c5e8ac591f8608a18f80000000000000000",
        "actualGasUsed": "0x7f550",
        "actualGasCost": "0x4b3b147f788710",
        "success": true,
        "logs": [
            // ...
        ],
        "receipt": {
            "transactionHash": "0x57465d20d634421008a167cfcfcde94847dba9d6b5d3652b071d4b84e5ce74ff",
            "transactionIndex": "0x20",
            "blockHash": "0xeaeec1eff4095bdcae44d86574cf1bf08b14b26be571b7c2290f32f9f250c103",
            "blockNumber": "0x31de70e",
            "from": "0x43370996A3Aff7B66B3AC7676dD973d01Ecec039",
            "to": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
            "cumulativeGasUsed": "0x4724c3",
            "gasUsed": "0x7ff5a",
            "contractAddress": null,
            "logs": [
                // ...
            ],
            "logsBloom": "0x010004000800020000000040000000000000040000000000000010000004000000080000001000000212841100000000041080000000000020000240000000000800000022001000400000080000028000040000000000200001000010000000000000000a0000000000000000800800000000004110004080800110282000000000000002000000000000000000000000000200000400000000000000240040200002000000000000400000000002000140000000000000000002200000004000000002000000000021000000000000000000000000800080108020000020000000080000000000000000000000000000000000000000000108000000102000",
            "status": "0x1",
            "effectiveGasPrice": "0x89b098f46"
        }
    }
}