Skip to main content

Build a Complex Transaction

The Flow CLI provides a command to decode a transaction from RLP in a file. It uses same transaction format as get command


_10
flow transactions decode <file>

Example Usage​


_19
> flow transactions decode ./rlp-file.rlp
_19
_19
ID c1a52308fb906358d4a33c1f1d5fc458d3cfea0d570a51a9dea915b90d678346
_19
Payer 83de1a7075f190a1
_19
Authorizers [83de1a7075f190a1]
_19
_19
Proposal Key:
_19
Address 83de1a7075f190a1
_19
Index 1
_19
Sequence 1
_19
_19
No Payload Signatures
_19
_19
Envelope Signature 0: 83de1a7075f190a1
_19
Signatures (minimized, use --include signatures)
_19
_19
Code (hidden, use --include code)
_19
_19
Payload (hidden, use --include payload)

Arguments​

Filename​

  • Name: <file_name>
  • Valid Input: file name.

The first argument is the filename containing the transaction RLP.

Flags​

Include Fields​

  • Flag: --include
  • Valid inputs: code, payload, signatures

Specify fields to include in the result output. Applies only to the text output.

Output​

  • Flag: --output
  • Short Flag: -o
  • Valid inputs: json, inline

Specify the format of the command results.

Save​

  • Flag: --save
  • Short Flag: -s
  • Valid inputs: a path in the current filesystem.

Specify the filename where you want the result to be saved

Version Check​

  • Flag: --skip-version-check
  • Default: false

Skip version check during start up to speed up process for slow connections.