Add possibility to sign calls via cli (#2549)

* Add possibility to sign calls via cli

* Update subkey/README.adoc

Co-Authored-By: Robert Habermeier <rphmeier@gmail.com>
This commit is contained in:
Michael Müller
2019-05-13 21:18:14 +02:00
committed by Gavin Wood
parent e5b0a98f1a
commit 7f3d71d306
3 changed files with 90 additions and 0 deletions
+15
View File
@@ -53,3 +53,18 @@ You can use the included vanity generator to find a seed that provides an addres
```bash
subkey vanity 1337
```
=== Signing a transaction
Sign a transaction from an encoded `Call`.
```bash
subkey sign-transaction \
--call <call-as-hex> \
--nonce 0 \
--suri <secret-uri> \
--password <password> \
--prior-block-hash <prior-block-hash-as-hex>
```
Will output a signed and encoded `UncheckedMortalCompactExtrinsic` as hex.