Sounds you like to do fulminate experiments. I think this is not allowed here.
How do you try to get the sodium. The only way is to melt sodiumchloride (800 ° C) and do electrolysis, but this ist not for home. To dangerous and you get also chlorine gas.