Skip to content

cc_listPendingUserOperations

List all pending user operations. In CyberPaymaster, each user can have only one user operation in process. You must call cc_listPendingUserOperations and cc_rejectUserOperation to reject the pending user operation before the user can create a new one.

request example

{
  "method": "cc_listPendingUserOperations",
  "params": ["0x2aE4CA6C56FEb873e7D60F3dee3388C9eAB09837"],
  "id": 0,
  "jsonrpc": "2.0"
}

response example

{
  "id": 0,
  "jsonrpc": "2.0",
  "result": {
    "userOperations": [
      {
        "userOperation": {
          "sender": "0x2aE4CA6C56FEb873e7D60F3dee3388C9eAB09837",
          "nonce": "0x943b65046f8e438e8cb465c30be7f1a40000000000000000",
          "initCode": "0x",
          "callData": "0x519454470000000000000000000000004bc54260ec3617b3f73fdb1fa22417ed109f372c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e40fe1597f0000000000000000000000000d3f6ec061a5565512c2bb04897d7190c88e822c000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000002ae4ca6c56feb873e7d60f3dee3388c9eab09837000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
          "callGasLimit": "0x19000",
          "verificationGasLimit": "0x17f96",
          "preVerificationGas": "0x7a6cf",
          "maxFeePerGas": "0x7af0134",
          "maxPriorityFeePerGas": "0x6422c40",
          "paymasterAndData": "0x4fd9098af9ddcb41da48a1d78f91f1398965addc0000651f83630000651f848f000000000000000000000000000000000000000095df41ea7c3adf762d715ca83ed8c8d0ee85cc85c779a4223ea4514b455e5c7715200366fb9f1f31c26a9c3a8c8438363d06804a97d9c7bb6bf6e06c5acc1d671b",
          "signature": "0x"
        },
        "userOperationHash": "0x744800e25051dcad9bccf22f2a69808c66fbd5a67cbc0576cfd3d0dffd7229a0",
        "chainId": 10,
        "credit": "0x27759",
        "status": "PENDING_SIGN",
        "pmAndDataExpireAt": 1696564367,
        "signBeforeAt": 1696564247,
        "refundAt": 1696564487
      }
    ]
  }
}