The Co2+/Ni2+ ion-mediated formation of a topochemically converted copper coordination polymer: structure-dependent electrocatalytic activity