The invention discloses an electromagnetic-constraint-type detonating device and belongs to the technical field of detonation. The electromagnetic-constraint-type detonating device comprises an explosion transmission component, electromagnetic actuators, a driving spring, steel balls, a state switch, an electric detonator, a detonating component, a body, press nuts, a big press nut, and screws. Atordinary times, the explosion transmission component is locked at the position, far away from the electric detonator, by the two electromagnetic actuators; meanwhile, the state switch provides shortcircuit protection for the electric detonator and has a state indication function, and the explosion transmission component is not detonated, even though the electric detonator acts accidentally; after the electromagnetic actuators are energized to act, the explosion transmission component is unlocked, the driving spring drives the explosion transmission component to move to the alignment state with the electric detonator, the state switch is switched and the short circuit protection for the electric detonator is relieved; the explosion transmission component can be detonated by action of anyway of the electric detonator, and further, the detonating component is detonated by the explosion transmission component. The electromagnetic-constraint-type detonating device has the advantages of remote control, high safety, reliable function, state indication and the like.