emerald-vault-archive icon indicating copy to clipboard operation
emerald-vault-archive copied to clipboard

Parse raw transaction

Open splix opened this issue 7 years ago • 2 comments

emerald parsetx <raw-tx> [--skip-data] [-h]

where:

  • --skip-data skips data putput
  • -h human friendly values. Should find closes valeu unit (Ether, Mwei, Gwei, etc), for example instead of Value (wei): 18451607206952527473 should be Value (Ether): 18.4516, for value and gas price

Example:

emerald parsetx 0xf863018301511582210094863a61ceb4694670fb0bb27da613eed60a565a0d808081a0a080c85533886b7cc2b34588812e9bf184cb7279c22b4ef78ac1f3ef2e75612a84a009b21594af0788db05f4ccdf5ccbe999e11ed8cbd110fb17d192094474681e38

        Address: 0x3fd9075a076b38b3a1c6c12e77912620c07968fd
          Nonce: 1
             To: 0x863a61ceb4694670fb0bb27da613eed60a565a0d
    Value (wei): 0
           Data: 
      Gas limit: 8448
Gas price (wei): 86293

(notice that values are not in hex but dec)

splix avatar Mar 20 '18 23:03 splix

Implement it as subcommand for transaction Ex.:

$ emerald transaction parse 0xf8630183...

r8d8 avatar Mar 27 '18 15:03 r8d8

$ emerald-vault transaction parse 0xf863018301511582210094863a61ceb4694670fb0bb27da613eed60a565a0d808081a0a080c85533886b7cc2b34588812e9bf184cb7279c22b4ef78ac1f3ef2e75612a84a009b21594af0788db05f4ccdf5ccbe999e11ed8cbd110fb17d192094474681e38
error: Found argument 'parse' which wasn't expected, or isn't valid in this context

USAGE:
    emerald-vault transaction [SUBCOMMAND]

For more information try --help

splix avatar Nov 09 '18 01:11 splix