Microelectrodes fabricated in the center of single-coil microelectromagnetic traps are described. Magnetic particles are then used to reversibly gate transport of an electroactive species to the surface of the electrode or as a means to produce an ON/OFF bioelectrocatalytic glucose sensor.