Decoderawtransaction

decoderawtransaction "hexstring"

Return a JSON object representing the serialized, hex-encoded transaction.

Arguments:
1. hexstring    (string, required) The transaction hex string

Result:
{                            (json object)
  "txid" : "hex",            (string) The transaction id
  "hash" : "hex",            (string) The transaction hash
  "size" : n,                (numeric) The serialized transaction size
  "version" : n,             (numeric) The version
  "locktime" : xxx,          (numeric) The lock time
  "vin" : [                  (json array)
    {                        (json object)
      "coinbase" : "hex",    (string, optional) The coinbase value (only if coinbase transaction)
      "txid" : "hex",        (string, optional) The transaction id (if not coinbase transaction)
      "vout" : n,            (numeric, optional) The output number (if not coinbase transaction)
      "scriptSig" : {        (json object, optional) The script (if not coinbase transaction)
        "asm" : "str",       (string) asm
        "hex" : "hex"        (string) hex
      },
      "sequence" : n         (numeric) The script sequence number
    },
    ...
  ],
  "vout" : [                 (json array)
    {                        (json object)
      "value" : n,           (numeric) The value in XEC
      "n" : n,               (numeric) index
      "scriptPubKey" : {     (json object)
        "asm" : "str",       (string) the asm
        "hex" : "hex",       (string) the hex
        "reqSigs" : n,       (numeric) The required sigs
        "type" : "str",      (string) The type, eg 'pubkeyhash'
        "addresses" : [      (json array)
          "str",             (string, optional) The eCash address (only if a well-defined address exists)
          ...
        ]
      }
    },
    ...
  ]
}

Examples:
> bitcoin-cli decoderawtransaction "hexstring"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "decoderawtransaction", "params": ["hexstring"]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/