A general method for the rapid synthesis of hollow metallic or bimetallic nanoelectrocatalysts with urchinlike morphology.