MCPcopy Create free account
hub / github.com/Jeiwan/blockchain_go / createWallet

Method createWallet

cli_createwallet.go:5–11  ·  view source on GitHub ↗
(nodeID string)

Source from the content-addressed store, hash-verified

3import "fmt"
4
5func (cli *CLI) createWallet(nodeID string) {
6 wallets, _ := NewWallets(nodeID)
7 address := wallets.CreateWallet()
8 wallets.SaveToFile(nodeID)
9
10 fmt.Printf("Your new address: %s\n", address)
11}

Callers 1

RunMethod · 0.95

Calls 3

CreateWalletMethod · 0.95
SaveToFileMethod · 0.95
NewWalletsFunction · 0.85

Tested by

no test coverage detected