userOperation.get
Retrieves information about a User Operation given a hash.
Usage
import { } from './client'
const = await ..({
: '0x4ca7ee652d57678f26e887c149ab0735f41de37bcad58c9f6d3ed5824f15b74d'
})import { } from 'viem'
import { } from 'viem/erc4337'
import { } from 'viem/chains'
export const = .({
: ,
: ('https://public.pimlico.io/v2/1/rpc')
})Returns
type Result = {
blockHash: Hash
blockNumber: bigint
entryPoint: Address
transactionHash: Hash
userOperation: UserOperation
}User Operation information.
Parameters
hash
- Type:
'0x${string}'
A User Operation hash.
import { } from './client'
const = await ..({
: '0x4ca7ee652d57678f26e887c149ab0735f41de37bcad58c9f6d3ed5824f15b74d'
})