You have to use the deposit currency option, then target your stack of gold. Also, you need to use the option to Open Bankbox from the context menu when clicking NPC, as just saying "Bank" does not bring up the list of banking options (unless they've changed it recently).