Managing accounts

The most convenient way to manage your account, is a user interface such as Lisk Desktop. However, it is possible to manage your account directly from the command-line with Lisk Commander.

The most important interactions are described below. For more information about the available Lisk Commander commands, check the Lisk Commander command reference.

Set network to Betanet

lisk config:set api.network beta

Creating a new account

$ lisk account:create
# Example Output
# [
#	{
#		"passphrase": "parent infant cup net below just keen machine street strike stay jungle",
#		"privateKey": "4e2f5c226755f0bff24030cf83ca03bca3f69a9ed49f4c29fc5977861517a4873faec6a62bfb36110466c810375b589308e99b3e7e04350f9a8d595755efb0d7",
#		"publicKey": "3faec6a62bfb36110466c810375b589308e99b3e7e04350f9a8d595755efb0d7",
#		"address": "13261923601726754008L"
#	}
#]

Sending tokens to another account

$ lisk transaction:create:transfer --networkIdentifier=networkIdentifier NONCE FEE AMOUNT ADDRESS
# Example
# $ lisk transaction:create:transfer --networkIdentifier=08ec0e01794b57e5ceaf5203be8c1bda51bcdd39bb6fc516adbe93223f85d6301 100 100 13261923601726754008L
#? Please enter passphrase:  [hidden]
#? Please re-enter passphrase:  [hidden]
#{
#	"id": "9331675989411948802",
#	"type": 8,
#	"senderPublicKey": "3faec6a62bfb36110466c810375b589308e99b3e7e04350f9a8d595755efb0d7",
#	"senderId": "13261923601726754008L",
#	"nonce": "1",
#	"fee": "10000000000",
#	"signatures": [
#		"b0242d84bf48bfdfbaf895149cb5c1c547c38929836ade1d6cdaee8d61099e2832b98e250bea389c109f465332f4d2c03bccc7b08553c8a1de7bbc31fefb0a02"
#	],
#	"asset": {
#		"amount": "10000000000",
#		"recipientId": "13261923601726754008L"
#	}
#}

Registering a delegate

$ lisk transaction:create:delegate --networkIdentifier=networkIdentifier NONCE FEE USERNAME
# Example
# $ lisk transaction:create:delegate --networkIdentifier=08ec0e01794b57e5ceaf5203be8c1bda51bcdd39bb6fc516adbe93223f85d6301 1 100 lightcurve
#? Please enter passphrase:  [hidden]
#? Please re-enter passphrase:  [hidden]
#{
#	"id": "8840385988431988799",
#	"type": 10,
#	"senderPublicKey": "3faec6a62bfb36110466c810375b589308e99b3e7e04350f9a8d595755efb0d7",
#	"senderId": "13261923601726754008L",
#	"nonce": "1",
#	"fee": "10000000000",
#	"signatures": [
#		"a7e7355b95a19861a91c65493de400cc93f19cc0f4428dbae91f830c4093be7f7b2d4d968de1d5c8384d52819a94ca2f25f13d3bb5390827f28848fa87053609"
#	],
#	"asset": {
#		"username": "lightcurve"
#	}
#}

How to vote/unvote delegates

$ lisk transaction:create:vote --networkIdentifier=networkIdentifier NONCE FEE
# Example
#$ lisk transaction:create:vote --networkIdentifier=08ec0e01794b57e5ceaf5203be8c1bda51bcdd39bb6fc516adbe93223f85d6301 1 100 --votes="356975984361330918L,1000000000" --votes="7539210577161571444L,3000000000" --votes="456975984361330919L,-1000000000"
#? Please enter passphrase:  [hidden]
#? Please re-enter passphrase:  [hidden]
#{
#	"id": "13816218037029545909",
#	"type": 13,
#	"senderPublicKey": "3faec6a62bfb36110466c810375b589308e99b3e7e04350f9a8d595755efb0d7",
#	"senderId": "13261923601726754008L",
#	"nonce": "1",
#	"fee": "10000000000",
#	"signatures": [
#		"97ee881d68142d7743c156b066d521e3565a43a38ea972d7137e3cf4405dc6e6227dbc153fcb8c349b4705bb8896cbed4b0d6bbcc06fecd2e9f71c847b94690e"
#	],
#	"asset": {
#		"votes": [
#			{
#				"delegateAddress": "356975984361330918L",
#				"amount": "100000000000000000"
#			},
#			{
#				"delegateAddress": "7539210577161571444L",
#				"amount": "300000000000000000"
#			},
#			{
#				"delegateAddress": "456975984361330919L",
#				"amount": "-100000000000000000"
#			}
#		]
#	}
#}

Broadcasting transactions to the network

$ lisk transaction:broadcast [TRANSACTION]
#Example
#echo '{"type":0,"id":...}' | lisk transaction:broadcast