restore

command
v0.0.0-...-ec9b850 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

README

Restore

This examples demonstrates restoring from 24 word backup keyphrase and creating enterprise and base payment addresses. Addresses can also be created for testnet and mainnet networks.

Usage

$ go run main.go --help

Usage of main.exe
    -mnemonic string
        Mnemonic to restore wallet
    -network string
        The network ie mainnet or testnet (default "mainnet")
    -type uint
        Enum of address type(0: Enterprise Address, 1: Base Address)

Example

To restore and create base address(payment key + stake key) for testnet from a recovery phrase run

go run main.go -mnemonic "24_WORD_BACKUP_PHRASE" -type 1 -network testnet
// addr_test1qqe6zztejhz5hq0xghlf72resflc4t2gmu9xjlf73x8dpf88d78zlt4rng3ccw8g5vvnkyrvt96mug06l5eskxh8rcjq2wyd63

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL