blockchain_go/cli_createwallet.go

12 lines
221 B
Go
Raw Normal View History

package main
import "fmt"
func (cli *CLI) createWallet(nodeID string) {
wallets, _ := NewWallets(nodeID)
address := wallets.CreateWallet()
2017-09-30 22:53:26 -05:00
wallets.SaveToFile(nodeID)
fmt.Printf("Your new address: %s\n", address)
}