Sunday, December 22, 2024

segregated witness – Quetion in regards to the segwit native Wpkh uncooked transaction

I constructed a segwit native uncooked transaction v2 with the wpkh deal with, and get the decoded transaction because the follows


{
  "model": "02000000",
  "marker": "00",
  "flag": "01",
  "inputcount": "02",
  "inputs": [
    {
      "txid": "21f519154a6ea655dc07ca24dcb79f913185916e762616c474a5665411e3a273",
      "vout": "00000000",
      "scriptsigsize": "00",
      "scriptsig": "",
      "sequence": "fdffffff"
    },
    {
      "txid": "227514140e2e2d898216f30e7f6d48fd1d86df2f808e4c52f4c78cb179d29c9c",
      "vout": "00000000",
      "scriptsigsize": "00",
      "scriptsig": "",
      "sequence": "fdffffff"
    }
  ],
  "outputcount": "02",
  "outputs": [
    {
      "amount": "e803000000000000",
      "scriptpubkeysize": "16",
      "scriptpubkey": "0014abc97562daa3db9641b7d5e4eee7f756e8979b97"
    },
    {
      "amount": "fc46010000000000",
      "scriptpubkeysize": "16",
      "scriptpubkey": "00149dd4101feb1ced4060108728e35c0e42291854e9"
    }
  ],
  "witness": [
    {
      "stackitems": "02",
      "0": {
        "size": "48",
        "item": "30450221009a59d6bfe14a1a6dddf545dd1e5c625a9d40a1beaded6f5122ada82b2eb399fe022050b8964688d288557d74a5a1455770d458fbac970adb32d8fdafc132a744881501"
      },
      "1": {
        "size": "21",
        "item": "0294d85843f1fe213631c3c7338e868b3210e32da1bc41d83bfb1940d20bdb94a9"
      }
    },
    {
      "stackitems": "02",
      "0": {
        "size": "48",
        "item": "3045022100845c5d527a6b9ef719c865f5a5baa34e886efce65eb438c15259daaae756b76402203b49ea871db26b5f0b90387cfc5bd13835b84cfb2128d162780c432d68d7161101"
      },
      "1": {
        "size": "21",
        "item": "0294d85843f1fe213631c3c7338e868b3210e32da1bc41d83bfb1940d20bdb94a9"
      }
    }
  ],
  "locktime": "00000000"
}

I despatched the transaction and return a txid,”faf1b468b3f25a8c48deff47be8ab969a638a9e4f3fd618b2d2f37d3f141b90b”.
My query is: I can’t discover it within the mempool or blockstream(testnet), and I checked my transaction format many times, however discover no issues, so anybody may help me test this?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles