Post
Topic
Board Bitcoin Technical Support
Re: Using Createrawtransaction Got no-witness-yet Error
by
haoqian
on 03/05/2018, 15:40:21 UTC
Can you also post what your final signed transaction looks like?

getrawchangeaddress shows this:

Code:
3PgBJaR5fCw9nBtij7THqfHbbENdCdFEuv
This will be a problem for you later because that is a segwit address and you do not have segwit enabled.

Thank you for your reply.

It looks like this:

Code:
{
  "txid": "391c0428614cb7f966bba368c3b83050d81f17190125b686e1434562bb82edd4",
  "hash": "6dc00133fa2043cda29d610f087c739fcc65f4a4efc4f0bc5058bcd003bd7f61",
  "version": 2,
  "size": 251,
  "vsize": 169,
  "locktime": 0,
  "vin": [
    {
      "txid": "551ba4bde3460bca6a6cae7da57ffd8b3f1baf18ad7a2e6d50f8d4f5b0a94e14",
      "vout": 1,
      "scriptSig": {
        "asm": "0014620cfaeb631c99d45490cc6560a7258835c260f8",
        "hex": "160014620cfaeb631c99d45490cc6560a7258835c260f8"
      },
      "txinwitness": [
        "3045022100a1e4403c6327fb787ef498cfaf6c54f8372f2792c06a7156cad6cf15c729de2802201eb1b48e2443b04688091897caf0fc9afbfc002227c05441a5f1723be9a532e401",
        "02533dc7b0e2d8f359fb235fd52bcda6135cfb0e39c6d9d93a10704457ff30e6ff"
      ],
      "sequence": 4294967295
    }
  ],
  "vout": [
    {
      "value": 0.00000000,
      "n": 0,
      "scriptPubKey": {
        "asm": "OP_RETURN 4d79206e616d65206973205a68616e672048616f7169616e",
        "hex": "6a184d79206e616d65206973205a68616e672048616f7169616e",
        "type": "nulldata"
      }
    },
    {
      "value": 48.99984900,
      "n": 1,
      "scriptPubKey": {
        "asm": "OP_HASH160 360ba84dc5961b64e67d75dd623a26c31d98beb9 OP_EQUAL",
        "hex": "a914360ba84dc5961b64e67d75dd623a26c31d98beb987",
        "reqSigs": 1,
        "type": "scripthash",
        "addresses": [
          "36cnNsjRuaP6cLGPFRXycaetmvmog5Wnyn"
        ]
      }
    }
  ]
}