compositions and method for providing a solid conductive electrolyte composition containing a polyhydroxyalkanoate and a salt of a conductive metal are described . the pha is biodegradable and biocompatible and provides a basis for batteries which are more environmentally degradable . naturally occurring polymers including polyhydroxybutyrate and polyhydroxyvalerate can be used to prepare the compositions .