Method for recording intracellular action potentials in electrogenic cells (4) through pores in cell membranes of cells (4) formed by optoporation, comprising the following steps: a) positioning of a sample comprising said cells (4) on a multi- electrode array (2); b) incubation (110) or perfusion (111) of the sample; e) focusing (14) of a laser on the surface of the array (2) electrodes (20), which surface contacts the sample; f) application of one or more laser pulses to one or more array (2) electrodes (20) to perform a localized breakdown of the membrane of the cells (4) of the sample; g) recording of intracellular action potentials; wherein said surface of the electrodes (20) is porous, so that it has cavities and protrusions at the nanoscale wherein the electric field produced by the laser is localized and amplified to perform said localized breakdown of the membrane of the cells (4) of the sample.