Unable To Decoderawtransaction

Discussion in 'Technical Development' started by AndPatel, May 5, 2016.

  1. 2017/12/15 - Decred v1.1.2 released! → Release Notes  → Downloads
  1. AndPatel

    AndPatel New Member

    May 4, 2016
    3
    0
    Male
    Hyderabad, Telangana, INDIA
    I am unable to decoderawtransaction for transactions which are large in size. for example c9438f1207b436381d2e24500e8e74702477f2d8a146fcaa610a60f8530e5e1b { block 24695 , last transaction } and 5e29cdb355b3fc7e76c98a9983cd44324b3efdd7815c866e33f6c72292cb8be6 { block 1, only transaction }. Is there an alternative way.

    I am using

    dcrctl -u username -P password getrawtransaction "c9438f1207b436381d2e24500e8e74702477f2d8a146fcaa610a60f8530e5e1b"

    to receive the hexstring which i am passing to decoderawtransaction the same way.
     
  2. root

    root Member

    Feb 3, 2016
    381
    76
    yes, there is :

    ./d help getrawtransaction

    note
    Result (verbose=true):

    and it works for me just fine
    $ ./d getrawtransaction 5e29cdb355b3fc7e76c98a9983cd44324b3efdd7815c866e33f6c72292cb8be6 1 | wc -l
    44068
     
    AndPatel likes this.
  3. AndPatel

    AndPatel New Member

    May 4, 2016
    3
    0
    Male
    Hyderabad, Telangana, INDIA
    I am receiving the hex-string. But unable to decode the hex-string using decoderawtransaction because of its size!!!!! Do one have an alternative way of dealing with it?
     
  4. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    Code:
    $ dcrctl -h
    ...
    The special parameter `-` indicates that a parameter should be read from the
    next unread line from standard input.
    
    So, as the help indicates, you can make the parameter '-' which tells it to pull the data from standard input and pass it in that way.

    Examples:
    Code:
    $ dcrctl decoderawtransaction - <tx.hex
    
    Code:
    $ cat tx.hex | dcrctl decoderawtransaction -
    
     
    AndPatel likes this.
  5. AndPatel

    AndPatel New Member

    May 4, 2016
    3
    0
    Male
    Hyderabad, Telangana, INDIA
    Thanks. It works.


     

Share This Page