POST
/
#eth_getUserOperationByHash

Understanding getUserOperationByHash

  • getUserOperationByHash returns a UserOperation object corresponding with a specific hash. It takes:
    • hash - string.

Query example

JSON
{
    "method": "eth_getUserOperationByHash",
    "params": [
      // user operation hash
      "0x1ee478a6e967c407e8dfb5e3f2eb1131a7418c36396147fce1f7e81a871102a3"
    ],
    "id": 1695717473,
    "jsonrpc": "2.0",
    "chainId": 80001
}

Body

application/json
jsonrpc
string
default: 2.0required

Version of the JSON-RPC protocol, should be 2.0.

id
integer
default: 1required

The request identifier.

chainId
integer
required

The chain ID.

method
enum<string>
required

API method being called.

Available options:
eth_getUserOperationByHash
params
string[]
required

Hash of the user operation.

Response

200 - application/json
jsonrpc
string
default: 2.0required

Version of the JSON-RPC protocol, should be 2.0.

id
integer
default: 1required

The request identifier.

chainId
integer
required

The chain ID.

result
object
required

Details of the user operation.