Unsigned*

Tasks that generate unsigned transactions that can be separately signed and forwarded to a node.

ethTransactionUnsignedEtherSend

Usage:

ethTransactionUnsignedEtherSend <destination-address-as-hex-or-ens-or-alias> <amount-quantity> <amount-unit = wei|gwei|szabo|finney|ether>

Creates an unsigned transaction representing a simple Ether send.

Prints the transaction as hex, and optionally saves it in binary format as a file.

Example:

> ethTransactionUnsignedEtherSend 0x465e79b940bc2157e4259ff6b2d92f454497f1e4 100 ether
[warn] The nonce for this transaction (15) was automatically computed for '0x1144f4f7aad0c463c667e0f8d73fc13f1e7e86a2' (with aliases ['default-sender'] on chain with ID 1).
[warn] The transaction will likely be invalid if signed on behalf of any other address, or if some of transaction is submitted by this address prior to this transaction.
Full unsigned transaction:
0xea0f850165a0bc0082627094465e79b940bc2157e4259ff6b2d92f454497f1e489056bc75e2d6310000080

Enter the path to a (not-yet-existing) file into which to write the binary unsigned transaction, or [return] not to save: /tmp/ether-send-txn.bin
[info] Unsigned transaction saved as '/tmp/ether-send-txn.bin'.
[success] Total time: 28 s, completed Mar 24, 2019 9:06:29 PM

ethTransactionUnsignedInvoke

Usage:

> ethTransactionUnsignedInvoke <contract-address-as-hex-or-ens-or-alias> <name-of-function-to-call> [<function-argument> <function-argument>...]

Creates an unsigned transaction representing a function call to a smart contract for which a contract abi is available.

Restricted to mutators, functions that might modify the blockchain.

Prints the transaction as hex, and optionally saves it in binary format as a file.

Example:

> ethTransactionUnsignedInvoke fortune <tab>
addFortune
> ethTransactionUnsignedInvoke fortune addFortune <tab>
<fortune, of type string>
> ethTransactionUnsignedInvoke fortune addFortune "The day after tommorow will be a pretty good day."
[warn] The nonce for this transaction (382) was automatically computed for '0x465e79b940bc2157e4259ff6b2d92f454497f1e4' (with aliases ['default-sender','testing0'] on chain with ID 1).
[warn] The transaction will likely be invalid if signed on behalf of any other address, or if some of transaction is submitted by this address prior to this transaction.
Full unsigned transaction:
0xf8a882017e84bebc20008301ba529482ea8ab1e836272322f376a5f71d5a34a71688f180b8844cf373e6000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000315468652064617920616674657220746f6d6d6f726f772077696c6c20626520612070726574747920676f6f64206461792e000000000000000000000000000000

Enter the path to a (not-yet-existing) file into which to write the binary unsigned transaction, or [return] not to save: /tmp/new-fortune.bin
[info] Unsigned transaction saved as '/tmp/new-fortune.bin'.
[success] Total time: 58 s, completed Mar 24, 2019 12:56:29 PM

ethTransactionUnsignedInvokeAny

Usage:

> ethTransactionUnsignedInvokeAny <contract-address-as-hex-or-ens-or-alias> <name-of-function-to-call> [<function-argument> <function-argument>...]

Same as ethTransactionUnsignedInvoke, except not restricted to mutators (functions that might modify the blockchain). You can, if you wish, create a transaction for a call to a read-only (pure or view) method with this task. It’s not clear why you’d ever want to do that, though. The task is defined for a kind of completeness.

Creates an unsigned transaction representing a function call to a smart contract for which a contract abi is available.

Prints the transaction as hex, and optionally saves it in binary format as a file.

ethTransactionUnsignedRaw

Usage:

> ethTransactionUnsignedRaw <destination-address-as-hex-or-ens-or-alias> <raw-data-as-hex> <amount-quantity> <amount-unit = wei|gwei|szabo|finney|ether>

Creates an unsigned “raw” transaction, for which the caller provides the message data directly as a hex string. (For complete control of all fields of the transactions, specify gas price and gas limit overrides and a nonce override.)

Prints the transaction as hex, and optionally saves it in binary format as a file.

Example:

> ethTransactionUnsignedRaw 0x20a4aae4677855681294158ef38344aead83a423 0xd09de08a 0 ether
[warn] The nonce for this transaction (15) was automatically computed for '0x1144f4f7aad0c463c667e0f8d73fc13f1e7e86a2' (with aliases ['default-sender'] on chain with ID 1).
[warn] The transaction will likely be invalid if signed on behalf of any other address, or if some of transaction is submitted by this address prior to this transaction.
Full unsigned transaction:
0xe40f847735940082836d9420a4aae4677855681294158ef38344aead83a4238084d09de08a

Enter the path to a (not-yet-existing) file into which to write the binary unsigned transaction, or [return] not to save: /tmp/raw-transaction.bin
[info] Unsigned transaction saved as '/tmp/raw-transaction.bin'.
[success] Total time: 15 s, completed Mar 24, 2019 9:19:19 PM