Skip to main content
POST
getUserOperationByHash

Understanding getUserOperationByHash

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

Query example

JSON

Body

application/json

Request to retrieve a user operation by its hash.

jsonrpc
string
default:2.0
required

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

Example:

"2.0"

id
integer
default:1
required

The request identifier.

Example:

1

chainId
integer
required

The chain ID.

Example:

80001

method
enum<string>
required

API method being called.

Available options:
eth_getUserOperationByHash
params
string[]
required

Hash of the user operation.

Response

200 - application/json

Successful response with the user operation details.

jsonrpc
string
default:2.0
required

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

Example:

"2.0"

id
integer
default:1
required

The request identifier.

Example:

1

chainId
integer
required

The chain ID.

Example:

80001

result
object
required

Details of the user operation.