Skip to content

getUserOperation

Retrieves information about a User Operation given a hash.

Usage

example.ts
import { bundlerClient } from './client'
 
const result = await bundlerClient.getUserOperation({ 
  hash: '0x4ca7ee652d57678f26e887c149ab0735f41de37bcad58c9f6d3ed5824f15b74d'
})

Returns

{
  blockHash: Hash,
  blockNumber: bigint,
  entryPoint: Address,
  transactionHash: Hash,
  userOperation: UserOperation
}

User Operation information.

Parameters

hash

  • Type: '0x${string}'

A User Operation hash.

const result = await publicClient.getUserOperation({
  hash: '0x4ca7ee652d57678f26e887c149ab0735f41de37bcad58c9f6d3ed5824f15b74d'
})