The function of sodium-potassium pumps involves the hydrolysis of ATP to provide the energy required for active transport. For each ATP molecule hydrolyzed, the pump transports three Na+ ions out of the cell and two K+ ions into the cell. This process is crucial for maintaining the resting membrane potential and is fundamental to the excitability of cells.