Created
April 10, 2019 07:52
-
-
Save dakk/5d17fc0c63679566734299a5aae6eb33 to your computer and use it in GitHub Desktop.
lisk-commander: create and sign a multisig transaction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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