def GetMinSpd(func_ea):
    pfn = idaapi.get_func(func_ea)
    if not pfn:
        return BADADDR
    return idaapi.get_min_spd_ea(pfn)
Return the address with the minimal spd (stack pointer delta)
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/GetMinSpd