func (w *WalletRPC) GetNewAddress(args []string) {
	if len(args) != 0 {
		w.errln("Usage: getnewaddress")
		return
	}

	addr, err := w.w.GetNewAddress(0)
	if err != nil {
		w.errf("Error generating new address: %s\n", err)
	}

	w.printf("Generated new address: %s\n", addr)
}
// GetNewAddress gets a new address.
GetNewAddress gets a new address.
// GetNewAddress gets a new address .
func (w *WalletRPC) GetNewAddress(args []string) {
	if len(args) != 0 {
		w.errln("Usage: getnewaddress")
		return
	}
	addr, err := w.w.GetNewAddress(0)
	if err != nil {
		w.errf("Error generating new address: %s\n", err)
	}
	w.printf("Generated new address: %s\n", addr)
}
func ( w * WalletRPC ) GetNewAddress ( args [ ] string ) { if len ( args ) != 0 { w . errln ( " " ) return } addr , err := w . w . GetNewAddress ( 0 ) if err != nil { w . errf ( " \n " , err ) } w . printf ( " \n " , addr ) }
GetNewAddress gets a new address.
GetNewAddress gets a new address .