blockchain_go/cli_createwallet.go

12 lines
196 B
Go

package main
import "fmt"
func (cli *CLI) createWallet() {
wallets, _ := NewWallets()
address := wallets.CreateWallet()
wallets.SaveToFile()
fmt.Printf("Your new address: %s\n", address)
}