1、 命令相關
1、查看命令幫助信息
./lotus wallet -h
NAME:
lotus wallet - Manage wallet
USAGE:
lotus wallet command [command options] [arguments...]
COMMANDS:
new Generate a new key of the given type
list List wallet address
balance Get account balance
export export keys
import import keys
default Get default wallet address
set-default Set default wallet address
sign sign a message
verify verify the signature of a message
help, h Shows a list of commands or help for one command
OPTIONS:
--help, -h show help (default: false)
--init-completion value generate completion code. Value must be 'bash' or 'zsh'
--version, -v print the version (default: false)
2、查看具體命令使用
./lotus wallet new -h
NAME:
lotus wallet new - Generate a new key of the given type
USAGE:
lotus wallet new [command options] [bls|secp256k1 (default secp256k1)]
OPTIONS:
--help, -h show help (default: false)
3、賬戶間轉賬
./lotus send --source [address1] --gas-price [value1] --nonce [value2] [targetAddress] [amount]