I can't broadcast the transaction to the zcashd testnet.error code: -26 error message: 16: tx-overwinter-active

I can’t broadcast the transaction to the zcashd testnet.
Getting
error code: -26
error message: 16: tx-overwinter-active

below is my message,
zcash-cli sendrawtransaction “0100000001fd384a1add1f24afe5f48ce920501e37f04cffd5980dda6482ebff4ec276778d000000006a4730440220302c198a934918e7ae52c6a994ae11c3c2efdb7573dd9850b6f7730e07a1863c02207215502c0bd639b32cd2751736e18b2982b3bade0ec005177af0c34cb73d82af0121025028e7590cf86fcce1d9a01139201b87aefbb7630b90372f39509caf39887ab6ffffffff01983a0000000000001976a91453a3e757affad94fa83b719f33d910cfea67d50088ac00000000”

1 Like

What version of zcashd are you running? How are you generating the raw transaction? As per the error Overwinter is active on the testnet so you’ll need to make sure you are creating transactions in the version 3 format as per: zips/zip-0202.rst at main · zcash/zips · GitHub

Thanks for your information.
Now I’m using ‘zcash-bitcore-lib’ to create raw transaction. Like below…

var privateKey = new bitcore.PrivateKey(‘L1uyy5qTuGrVXrmrsvHWHgVzW9kKdrp27wBC7Vs6nZDTF2BRUVwy’);
var utxo = {
“txId” : “115e8f72f39fad874cfab0deed11a80f24f967a84079fb56ddf53ea02e308986”,
“outputIndex” : 0,
“address” : “17XBj6iFEsf8kzDMGQk5ghZipxX49VXuaV”,
“script” : “76a91447862fe165e6121af80d5dde1ecb478ed170565b88ac”,
“satoshis” : 50000
};

var transaction = new bitcore.Transaction()
.from(utxo)
.to(‘1Gokm82v6DmtwKEB8AiVhm82hyFSsEvBDK’, 15000)
.sign(privateKey);

Looks like that library hasn’t been updated in some time so I guess it’s not creating v3 transactions that are compatible with Overwinter. There’s actually already an issue open https://github.com/BitMEX/zcash-bitcore-lib/issues/6.

2 Likes

Hi Shishir;

    Hope you are doing Greate!
    Did you get the solution for this problem?
    As I am also facing same problem, if any solution please help me.

Thanking You in advance.