wallet

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Cmd = &cobra.Command{
		Use:   "wallet",
		Short: "Manage wallet addresses.",
	}
	ListCmd = &cobra.Command{
		Use:   "list",
		Short: "List all wallet addresses.",
		Args:  cobra.NoArgs,
		RunE:  doList,
	}
	ImportCmd = &cobra.Command{
		Use:   "import",
		Args:  cobra.ExactArgs(1),
		Short: "Import an address to the wallet.",
		Long: `Piri expects a delegated filecoin address private key in hex format as a single argument to this command.
You can create the required address via lotus using the command:
	'lotus wallet new delegated'
You can export the wallet from lotus using the command:
	'lotus wallet export <FILECOIN_ADDRESS>' > wallet.hex
You may then import 'wallet.hex' via this command`,
		Example: "piri wallet import wallet.hex",
		RunE:    doImport,
	}
)

TODO this needs to become a client command, rather than mutating the local filesystem directly.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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