Learn how to use the getUserOperationByHash JSON-RPC method.
curl --request POST \
--url 'https://bundler.particle.network/#eth_getUserOperationByHash' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"chainId": 80001,
"method": "eth_getUserOperationByHash",
"params": [
"0xOperationHash"
]
}
'{
"jsonrpc": "2.0",
"id": 1,
"chainId": 80001,
"result": {
"userOperation": {},
"entryPoint": "0xEntryPoint",
"transactionHash": "0xTransactionHash",
"blockHash": "0xBlockHash",
"blockNumber": "0xBlockNumber"
}
}getUserOperationByHashgetUserOperationByHash returns a UserOperation object corresponding with a specific hash. It takes:
hash - string.{
"method": "eth_getUserOperationByHash",
"params": [
// user operation hash
"0x1ee478a6e967c407e8dfb5e3f2eb1131a7418c36396147fce1f7e81a871102a3"
],
"id": 1695717473,
"jsonrpc": "2.0",
"chainId": 80001
}
Request to retrieve a user operation by its hash.
Version of the JSON-RPC protocol, should be 2.0.
"2.0"
The request identifier.
1
The chain ID.
80001
API method being called.
eth_getUserOperationByHash Hash of the user operation.
Successful response with the user operation details.
Was this page helpful?
curl --request POST \
--url 'https://bundler.particle.network/#eth_getUserOperationByHash' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"chainId": 80001,
"method": "eth_getUserOperationByHash",
"params": [
"0xOperationHash"
]
}
'{
"jsonrpc": "2.0",
"id": 1,
"chainId": 80001,
"result": {
"userOperation": {},
"entryPoint": "0xEntryPoint",
"transactionHash": "0xTransactionHash",
"blockHash": "0xBlockHash",
"blockNumber": "0xBlockNumber"
}
}