• Packs a UserOperation into the format expected by the EntryPoint contract.

    Parameters

    • op: {
          accountGasLimits: `0x${string}`;
          callData: `0x${string}`;
          gasFees: `0x${string}`;
          initCode: `0x${string}`;
          nonce: bigint;
          paymasterAndData: `0x${string}`;
          preVerificationGas: bigint;
          sender: `0x${string}`;
          signature: `0x${string}`;
      }

      The packed user operation to encode

    Returns Hex

    The ABI-encoded packed operation

    const packed = packUserOpV7({
    sender: "0x123...",
    nonce: "0x1",
    // ... other PackedUserOperation fields
    });