Skip to content

Instantly share code, notes, and snippets.

@dakk
Created April 10, 2019 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dakk/5d17fc0c63679566734299a5aae6eb33 to your computer and use it in GitHub Desktop.
Save dakk/5d17fc0c63679566734299a5aae6eb33 to your computer and use it in GitHub Desktop.
lisk-commander: create and sign a multisig transaction
# Install lisk-commander
$ sudo npm install --global --production lisk-commander
# Transaction creation
$ lisk transaction:create -t transfer 100 ADDRESSL
? Please enter your secret passphrase: [hidden]
? Please re-enter your secret passphrase: [hidden]
{"amount":"10000000000","recipientId":"XXXL","senderPublicKey":"XX","timestamp":123,"type":0,"fee":"10000000","asset":{},"signature":"XX","id":"123"}
# Broadcast the multisig tx
$ lisk transaction:broadcast '{"amount":"10000000000","recipientId":"XXXL","senderPublicKey":"XX.....}'
## Now the multisig tx is broadcasted, but needs signatures
# Create the signature
$ lisk signature:create '{"amount":"10000000000","recipientId":"XXXL","senderPublicKey":"XX.....}'
{"transactionId":"123","publicKey":"xxx","signature":"xxx"}
$ lisk signature:broadcast '{"transactionId":"123","publicKey":"xxx","signature":"xxx"}'
{"message":"Signature Accepted"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment