func (w *WalletRPC) Redeem(args []string) {
	if len(args) != 1 {
		w.errln("Usage: redeem <address>")
		return
	}

	if !address.ValidateAddress(args[0]) {
		w.errf("Invalid address: %s\n", args[0])
		return
	}

	addr := address.Address(args[0])

	w.printf("Redeeming premine balance of %s...\n", addr)

	err := w.w.RedeemPremine(addr)
	if err != nil {
		w.errf("Error redeeming premine: %s\n", err)
		return
	}

	w.println("Successfully redeemed premine.")
}
// Redeem redeems the premine of an address.
Redeem redeems the premine of an address.
// Redeem redeems the premine of an address .
func (w *WalletRPC) Redeem(args []string) {
	if len(args) != 1 {
		w.errln("Usage: redeem <address>")
		return
	}
	if !address.ValidateAddress(args[0]) {
		w.errf("Invalid address: %s\n", args[0])
		return
	}
	addr := address.Address(args[0])
	w.printf("Redeeming premine balance of %s...\n", addr)
	err := w.w.RedeemPremine(addr)
	if err != nil {
		w.errf("Error redeeming premine: %s\n", err)
		return
	}
	w.println("Successfully redeemed premine.")
}
func ( w * WalletRPC ) Redeem ( args [ ] string ) { if len ( args ) != 1 { w . errln ( " " ) return } if ! address . ValidateAddress ( args [ 0 ] ) { w . errf ( " \n " , args [ 0 ] ) return } addr := address . Address ( args [ 0 ] ) w . printf ( " \n " , addr ) err := w . w . RedeemPremine ( addr ) if err != nil { w . errf ( " \n " , err ) return } w . println ( " " ) }
Redeem redeems the premine of an address.
Redeem redeems the premine of an address .