Bundler RPC
getUserOperationByHash
Learn how to use the getUserOperationByHash JSON-RPC method.
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.0requiredVersion of the JSON-RPC protocol, should be 2.0.
id
integer
default: 1requiredThe request identifier.
chainId
integer
requiredThe chain ID.
method
enum<string>
requiredAPI method being called.
Available options:
eth_getUserOperationByHash
params
string[]
requiredHash of the user operation.
Response
200 - application/json
jsonrpc
string
default: 2.0requiredVersion of the JSON-RPC protocol, should be 2.0.
id
integer
default: 1requiredThe request identifier.
chainId
integer
requiredThe chain ID.
result
object
requiredDetails of the user operation.
Was this page helpful?