Skip to content

sendCompressedUserOperation

Submits a compressed user operation to the bundler.

Usage

example.ts
import { pimlicoBundlerClient } from "./client"
 
const userOpHash = await pimlicoBundlerClient.sendCompressedUserOperation({
    compressedUserOperation: "0x3c037f957fde5d87e35d5b8582f6c274343bcf3bc0e0037f957fde5d87e35d5b8582f6c2710d72fc2de0e27f4a6aa",
    inflatorAddress: "0x422f72B27819798986F41c1bede24e76114DE584",
})
/**
 * "0x3c037f957fde5d87e35d5b8582f6c274343bcf3bc0e010d72fc2de0e27f4a6aa"
 */

Returns

  • Type: Hash

The user operation hash.

Parameters

compressedUserOperation

  • Type: Hex

The compressed user operation object.

inflatorAddress

  • Type: Address

The address of the inflator contract that will inflate the compressed user operation.

JSON-RPC Method

pimlico_sendCompressedUserOperation