Bitcoin Forum
February 16, 2019, 12:32:16 AM *
News: Latest Bitcoin Core release: 0.17.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: sendrawtransaction with '64: no-witness-yet' error  (Read 84 times)
bajian
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
September 27, 2018, 09:42:19 AM
 #1

I use `listunspent` `createrawtransaction` `signrawtransaction` to do a transaction ,but got 'error code: -26 , error message:64: no-witness-yet'
Here is my history in testnet :
My core version is 0.16
1、
bitcoin-cli listunspent 1

[
  {
    "txid": "6afb6f83f034a1d66d9a6ea4cd801cc5b745df3965f86d3f04fd670b3a26b60d",
    "vout": 0,
    "address": "2N2uvmFF4sPvySr8vp9gUdZ5eWLGwU7Hp9i",
    "account": "watch-only test",
    "scriptPubKey": "a9146a0af9dd8aca62845621586f42bc1805aeb5fe3087",
    "amount": 0.50000000,
    "confirmations": 1,
    "spendable": false,
    "solvable": false,
    "safe": true
  },
  {
    "txid": "1cb8c4ad8e01812df83a371d1654823b610c695e6149c7e0dee9cbf702e020d7",
    "vout": 0,
    "address": "2N8cLkMQnarJTFxPWvYJRFbTWxSxajg7Ke6",
    "account": "watch-only test2",
    "scriptPubKey": "a914a88843c7122018efb263fba9ad89a2fe3147eccd87",
    "amount": 0.10000000,
    "confirmations": 9,
    "spendable": false,
    "solvable": false,
    "safe": true
  }
]
2、
bitcoin-cli createrawtransaction '[{ "txid" : "6afb6f83f034a1d66d9a6ea4cd801cc5b745df3965f86d3f04fd670b3a26b60d", "vout" : 0 },{ "txid" : "1cb8c4ad8e01812df83a371d1654823b610c695e6149c7e0dee9cbf702e020d7", "vout" : 0 }]' '{"2N8cLkMQnarJTFxPWvYJRFbTWxSxajg7Ke6": 0.4, "mjru3uKfSqwR1WMiEtWmez9BYkWALY1XRp": 0.19998392}'

02000000020db6263a0b67fd043f6df86539df45b7c51c80cda46e9a6dd6a134f0836ffb6a00000 00000ffffffffd720e002f7cbe9dee0c749615e690c613b8254161d373af82d81018eadc4b81c00 00000000ffffffff02005a62020000000017a914a88843c7122018efb263fba9ad89a2fe3147ecc d87b8263101000000001976a9142fa61d4b373af86c243c4b277b992b942d82106088ac00000000

3、(on another bitcoin core with all the private keys)
bitcoin-cli signrawtransaction 02000000020db6263a0b67fd043f6df86539df45b7c51c80cda46e9a6dd6a134f0836ffb6a00000 00000ffffffffd720e002f7cbe9dee0c749615e690c613b8254161d373af82d81018eadc4b81c00 00000000ffffffff02005a62020000000017a914a88843c7122018efb263fba9ad89a2fe3147ecc d87b8263101000000001976a9142fa61d4b373af86c243c4b277b992b942d82106088ac00000000 '[{"txid":"6afb6f83f034a1d66d9a6ea4cd801cc5b745df3965f86d3f04fd670b3a26b60d","vout":0,"scriptPubKey":"a9146a0af9dd8aca62845621586f42bc1805aeb5fe3087"},{"txid":"1cb8c4ad8e01812df83a371d1654823b610c695e6149c7e0dee9cbf702e020d7","vout":0,"scriptPubKey":"a914a88843c7122018efb263fba9ad89a2fe3147eccd87"}]'

{
  "hex": "020000000001020db6263a0b67fd043f6df86539df45b7c51c80cda46e9a6dd6a134f0836ffb6a0 0000000171600146e15e112bbf11e1ffaed36fbf26110fb16ee6346ffffffffd720e002f7cbe9de e0c749615e690c613b8254161d373af82d81018eadc4b81c00000000171600144d6e83016b034ac 01500ab463c4050a876097b84ffffffff02005a62020000000017a914a88843c7122018efb263fb a9ad89a2fe3147eccd87b8263101000000001976a9142fa61d4b373af86c243c4b277b992b942d8 2106088ac0247304402207a9ef6e9624187179e103cc675abbb562b1a0a11c468b7a0d256df4f02 c193cb02207851969ddff1b207cf26ac7693f48e812f7c03e80d96e820ed1468b8a2d6cd8d01210 3dd732bc9b11c27e3bdbc068489514c8a311dd900a3ae852d8a07b6c14e1d509b0247304402203c 287b6b1a8f0fd4e997ff36963c37a24fdb940c4240417fa551510738615bc30220623cae9715959 3c55fab9c655dc02dfcb85af6c1e7a1e14e14805ea1d921770d0121028a8c638a6730ebe0ab5157 70b46ef6d675db72c8154aeb6b81212dc20594de0400000000",
  "complete": true
}

4、
bitcoin-cli sendrawtransaction 020000000001020db6263a0b67fd043f6df86539df45b7c51c80cda46e9a6dd6a134f0836ffb6a0 0000000171600146e15e112bbf11e1ffaed36fbf26110fb16ee6346ffffffffd720e002f7cbe9de e0c749615e690c613b8254161d373af82d81018eadc4b81c00000000171600144d6e83016b034ac 01500ab463c4050a876097b84ffffffff02005a62020000000017a914a88843c7122018efb263fb a9ad89a2fe3147eccd87b8263101000000001976a9142fa61d4b373af86c243c4b277b992b942d8 2106088ac0247304402207a9ef6e9624187179e103cc675abbb562b1a0a11c468b7a0d256df4f02 c193cb02207851969ddff1b207cf26ac7693f48e812f7c03e80d96e820ed1468b8a2d6cd8d01210 3dd732bc9b11c27e3bdbc068489514c8a311dd900a3ae852d8a07b6c14e1d509b0247304402203c 287b6b1a8f0fd4e997ff36963c37a24fdb940c4240417fa551510738615bc30220623cae9715959 3c55fab9c655dc02dfcb85af6c1e7a1e14e14805ea1d921770d0121028a8c638a6730ebe0ab5157 70b46ef6d675db72c8154aeb6b81212dc20594de0400000000

error code: -26
error message:
64: no-witness-yet

-----------------

My bitcoin core with all the private keys state:
bitcoin-cli getblockchaininfo
{
  "chain": "test",
  "blocks": 600616,
  "headers": 1293072,
  "bestblockhash": "00000000000119b2bf788e27f76e5d0e62dffce262abf1d13773afa76b823e78",
  "difficulty": 28603.69332409825,
  "mediantime": 1447192838,
  "verificationprogress": 0.3545194889064706,
  "initialblockdownload": true,
  "chainwork": "0000000000000000000000000000000000000000000000067b7f487511f533d2",
  "size_on_disk": 12105222551,
  "pruned": false,
  "softforks": [
    {
      "id": "bip34",
      "version": 2,
      "reject": {
        "status": true
      }
    },
    {
      "id": "bip66",
      "version": 3,
      "reject": {
        "status": true
      }
    },
    {
      "id": "bip65",
      "version": 4,
      "reject": {
        "status": true
      }
    }
  ],
  "bip9_softforks": {
    "csv": {
      "status": "defined",
      "startTime": 1456790400,
      "timeout": 1493596800,
      "since": 0
    },
    "segwit": {
      "status": "defined",
      "startTime": 1462060800,
      "timeout": 1493596800,
      "since": 0
    }
  },
  "warnings": ""
}

-------------

Any one can help me?  Smiley
1550277136
Hero Member
*
Offline Offline

Posts: 1550277136

View Profile Personal Message (Offline)

Ignore
1550277136
Reply with quote  #2

1550277136
Report to moderator
1550277136
Hero Member
*
Offline Offline

Posts: 1550277136

View Profile Personal Message (Offline)

Ignore
1550277136
Reply with quote  #2

1550277136
Report to moderator
1550277136
Hero Member
*
Offline Offline

Posts: 1550277136

View Profile Personal Message (Offline)

Ignore
1550277136
Reply with quote  #2

1550277136
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1550277136
Hero Member
*
Offline Offline

Posts: 1550277136

View Profile Personal Message (Offline)

Ignore
1550277136
Reply with quote  #2

1550277136
Report to moderator
Lauda
Legendary
*
Offline Offline

Activity: 2128
Merit: 1832


GUNBOT Licenses up to 50% OFF - 'GrumpyKitty'.


View Profile WWW
September 27, 2018, 12:57:47 PM
 #2

For starters, update to 0.16.3 and make sure you are fully synced.

.FORTUNE.JACK.
      ▄▄███████▄▄
   ▄████▀▀ ▄ ██████▄
  ████ ▄▄███ ████████
 █████▌▐███▌ ▀▄ ▀█████
███████▄██▀▀▀▀▄████████
█████▀▄▄▄▄█████████████
████▄▄▄▄ █████████████
 ██████▌ ███▀████████
  ███████▄▀▄████████
   ▀█████▀▀███████▀
      ▀▀██████▀▀
         
         █
...FortuneJack.com                                             
...THE BIGGEST BITCOIN GAMBLING SITE
       ▄▄█████████▄▄
    ▄█████████████████▄
  ▄█████████████████████▄
 ▄██
█████████▀███████████▄
██████████▀   ▀██████████
█████████▀       ▀█████████
████████           ████████
████████▄   ▄ ▄   ▄████████
██████████▀   ▀██████████
 ▀██
█████████████████████▀
  ▀██
███████████████████▀
    ▀█████████████████▀
       ▀▀█████████▀▀
#JACKMATE
WIN 1 BTC
▄█████████████████████████▄
███████████████████████████
███████████████████████████
██████████▀█████▀██████████
███████▀░░▀░░░░░▀░░▀███████
██████▌░░░░░░░░░░░░░▐██████
██████░░░░██░░░██░░░░██████
█████▌░░░░▀▀░░░▀▀░░░░▐█████
██████▄░░▄▄▄░░░▄▄▄░░▄██████
████████▄▄███████▄▄████████

███████████████████████████
███████████████████████████
▀█████████████████████████▀
seoincorporation
Legendary
*
Offline Offline

Activity: 1260
Merit: 1290


BtcBoss


View Profile
September 27, 2018, 01:21:15 PM
 #3

For starters, update to 0.16.3 and make sure you are fully synced.

Agree with Lauda, first of all update your core to 0.16.3

Now talking about the transaction i try to push it on blockchain.com and it say:

Quote
Missing parents for 0420e1fadbdecb7949aeb3351e8ce6ff5c0b8e1fced08ffbde6d67524bd3a65e while inserting: [1cb8c4ad8e01812df83a371d1654823b610c695e6149c7e0dee9cbf702e020d7, 6afb6f83f034a1d66d9a6ea4cd801cc5b745df3965f86d3f04fd670b3a26b60d]

So, this makes me think you have a problem with one input.

Use listunspent to select the inputs you want to use for the transaction, that way you can verify they are valid inputs.

.BitDice.               ▄▄███▄▄
           ▄▄██▀▀ ▄ ▀▀██▄▄
      ▄▄█ ▀▀  ▄▄█████▄▄  ▀▀ █▄▄
  ▄▄██▀▀     ▀▀ █████ ▀▀     ▀▀██▄▄
██▀▀ ▄▄██▀      ▀███▀      ▀██▄▄ ▀▀██
██  ████▄▄       ███       ▄▄████  ██
██  █▀▀████▄▄  ▄█████▄  ▄▄████▀▀█  ██
██  ▀     ▀▀▀███████████▀▀▀     ▀  ██
             ███████████
██  ▄     ▄▄▄███████████▄▄▄     ▄  ██
██  █▄▄████▀▀  ▀█████▀  ▀▀████▄▄█  ██
██  ████▀▀       ███       ▀▀████  ██
██▄▄ ▀▀██▄      ▄███▄      ▄██▀▀ ▄▄██
  ▀▀██▄▄     ▄▄ █████ ▄▄     ▄▄██▀▀
      ▀▀█ ▄▄  ▀▀█████▀▀  ▄▄ █▀▀
           ▀▀██▄▄ ▀ ▄▄██▀▀
               ▀▀███▀▀
        ▄▄███████▄▄
     ▄███████████████▄
    ████▀▀       ▀▀████
   ████▀           ▀████
   ████             ████
   ████ ▄▄▄▄▄▄▄▄▄▄▄ ████
▄█████████████████████████▄
██████████▀▀▀▀▀▀▀██████████
████                   ████
████                   ████
████                   ████
████                   ████
████                   ████
████▄                 ▄████
████████▄▄▄     ▄▄▄████████
  ▀▀▀█████████████████▀▀▀
        ▀▀▀█████▀▀▀
▄▄████████████████████████████████▄▄
██████████████████████████████████████
█████                            █████
█████                            █████
█████                            █████
█████                            █████
█████                     ▄▄▄▄▄▄▄▄▄▄
█████                   ▄█▀▀▀▀▀▀▀▀▀▀█▄
█████                   ██          ██
█████                   ██          ██
█████                   ██          ██
██████████████████▀▀███ ██          ██
 ████████████████▄  ▄██ ██          ██
   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ██          ██
             ██████████ ██          ██
           ▄███████████ ██████▀▀██████
          █████████████  ▀████▄▄████▀
[/]
bajian
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
September 27, 2018, 02:53:17 PM
 #4

For starters, update to 0.16.3 and make sure you are fully synced.

Agree with Lauda, first of all update your core to 0.16.3

Now talking about the transaction i try to push it on blockchain.com and it say:

Quote
Missing parents for 0420e1fadbdecb7949aeb3351e8ce6ff5c0b8e1fced08ffbde6d67524bd3a65e while inserting: [1cb8c4ad8e01812df83a371d1654823b610c695e6149c7e0dee9cbf702e020d7, 6afb6f83f034a1d66d9a6ea4cd801cc5b745df3965f86d3f04fd670b3a26b60d]

So, this makes me think you have a problem with one input.

Use listunspent to select the inputs you want to use for the transaction, that way you can verify they are valid inputs.


Thanks. I will upgrade tomorrow.

And the data is in testnet, I am not sure if it can be pushed on blockchain.com
Lauda
Legendary
*
Offline Offline

Activity: 2128
Merit: 1832


GUNBOT Licenses up to 50% OFF - 'GrumpyKitty'.


View Profile WWW
September 27, 2018, 03:12:03 PM
 #5

For starters, update to 0.16.3 and make sure you are fully synced.

Agree with Lauda, first of all update your core to 0.16.3

Now talking about the transaction i try to push it on blockchain.com and it say:

Quote
Missing parents for 0420e1fadbdecb7949aeb3351e8ce6ff5c0b8e1fced08ffbde6d67524bd3a65e while inserting: [1cb8c4ad8e01812df83a371d1654823b610c695e6149c7e0dee9cbf702e020d7, 6afb6f83f034a1d66d9a6ea4cd801cc5b745df3965f86d3f04fd670b3a26b60d]

So, this makes me think you have a problem with one input.

Use listunspent to select the inputs you want to use for the transaction, that way you can verify they are valid inputs.
Thanks. I will upgrade tomorrow.

And the data is in testnet, I am not sure if it can be pushed on blockchain.com
There is this: https://testnet.blockchain.info/pushtx. Therefore, I don't see why not. I have never used it though.

.FORTUNE.JACK.
      ▄▄███████▄▄
   ▄████▀▀ ▄ ██████▄
  ████ ▄▄███ ████████
 █████▌▐███▌ ▀▄ ▀█████
███████▄██▀▀▀▀▄████████
█████▀▄▄▄▄█████████████
████▄▄▄▄ █████████████
 ██████▌ ███▀████████
  ███████▄▀▄████████
   ▀█████▀▀███████▀
      ▀▀██████▀▀
         
         █
...FortuneJack.com                                             
...THE BIGGEST BITCOIN GAMBLING SITE
       ▄▄█████████▄▄
    ▄█████████████████▄
  ▄█████████████████████▄
 ▄██
█████████▀███████████▄
██████████▀   ▀██████████
█████████▀       ▀█████████
████████           ████████
████████▄   ▄ ▄   ▄████████
██████████▀   ▀██████████
 ▀██
█████████████████████▀
  ▀██
███████████████████▀
    ▀█████████████████▀
       ▀▀█████████▀▀
#JACKMATE
WIN 1 BTC
▄█████████████████████████▄
███████████████████████████
███████████████████████████
██████████▀█████▀██████████
███████▀░░▀░░░░░▀░░▀███████
██████▌░░░░░░░░░░░░░▐██████
██████░░░░██░░░██░░░░██████
█████▌░░░░▀▀░░░▀▀░░░░▐█████
██████▄░░▄▄▄░░░▄▄▄░░▄██████
████████▄▄███████▄▄████████

███████████████████████████
███████████████████████████
▀█████████████████████████▀
achow101
Moderator
Legendary
*
Offline Offline

Activity: 1680
Merit: 2061


bc1qshxkrpe4arppq89fpzm6c0tpdvx5cfkve2c8kl


View Profile WWW
September 27, 2018, 03:19:01 PM
 #6

You are not fully synced yet. Your node has not passed the segwit activation point. It does not know that segwit has activated yet as it has not downloaded and validated the entire testnet blockchain. However, you have made a segwit transaction, and because your node has not passed segwit's activation point, it finds your transaction to be invalid. Wait until you have fully synced, then try again.

bajian
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
September 28, 2018, 07:43:03 AM
 #7

After synced,it works well. Thanks a lot for everyone!
Meanwhile the second param in signrawtransaction must require `amount`, it is a new param

2. "prevtxs"       (string, optional) An json array of previous dependent transaction outputs
     [               (json array of json objects, or 'null' if none provided)
       {
         "txid":"id",             (string, required) The transaction id
         "vout":n,                  (numeric, required) The output number
         "scriptPubKey": "hex",   (string, required) script key
         "redeemScript": "hex",   (string, required for P2SH or P2WSH) redeem script
         "amount": value            (numeric, required) The amount spent         <----------------- the document on bitcoin.org has not updated.
       }
       ,...
    ]

 Smiley Smiley
Pages: [1]
  Print  
 
Jump to:  

Bitcointalk.org is not available or authorized for sale. Do not believe any fake listings.
Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!