cURL
curl --request POST \ --url https://api.gelato.cloud/rpc/{chainId} \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <x-api-key>' \ --data ' { "id": 1, "jsonrpc": "2.0", "method": "eth_getUserOperationByHash", "params": [ "0xa501bf1cbb27adecb09aef8adb58ab5fe423be7975d5a4f687408525e4cabee9" ] } '
{ "id": 1, "jsonrpc": "2.0", "result": { "userOperation": { "sender": "0x023fEF87894773DF227587d9B29af8D17b4dBB5A", "nonce": "0x1", "initCode": "0x", "callData": "0x51945447000000000000000000000000d2d3248f89fd11117496b3258db161a834dbfb0b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004d09de08a00000000000000000000000000000000000000000000000000000000", "signature": "0x00000000fca6490c2d85724bac088250a72fb7fb81a5a91234b1617d75d072c79d8d7db0123c1f0d9fe4708c864d89b7cca659f2554807f81339f6dcee2ba2e5ebe46b2c1b", "paymasterAndData": "0x", "callGasLimit": "0x358e", "verificationGasLimit": "0x148a6", "preVerificationGas": "0x0", "maxFeePerGas": "0x0", "maxPriorityFeePerGas": "0x5f5e100" }, "entryPoint": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789", "blockNumber": "0x27fb22e", "transactionHash": "0x0f9b0e5868beaf345d8d55895c8037ae85adb91c422c00badcdcae8a0bf247a1" } }
Returns a UserOperation given a userOpHash.
UserOperation
userOpHash
Gelato API key for higher rate limits. This must be provided if sponsoring off-chain via Gas Tank.
Target network chain identifier.
1
The userOpHash of the UserOperation (as returned by eth_sendUserOperation)
eth_sendUserOperation
Successful response
Show child attributes