# Signrawtransaction false: Operation not valid with the current stack size

**URL:** <https://forum.zcashcommunity.com/t/signrawtransaction-false-operation-not-valid-with-the-current-stack-size/349>\
**Category:** zcashd client\
**Created:** [February 23, 2016, 7:06am UTC](https://forum.zcashcommunity.com/t/signrawtransaction-false-operation-not-valid-with-the-current-stack-size/349 "2016-02-23T07:06:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![willliw](https://avatars.discourse-cdn.com/v4/letter/w/e68b1a/32.png) [@willliw](https://forum.zcashcommunity.com/u/willliw)\
**Post date:** [February 23, 2016, 7:06am UTC](https://forum.zcashcommunity.com/t/signrawtransaction-false-operation-not-valid-with-the-current-stack-size/349/1 "2016-02-23T07:06:51Z")

</div>

Dear all,  
I follow the “Public Alpha Guide” and successfully build the zcash and also get some coins already. Now I was stalled at the signrawtransaction rpc which return with an error: “Operation not valid with the current stack size”.  
I have checked that I do have the respond private key, so I decide to send the result hex by sendrawtransaction directly. Than the error message changes to “absurdly high fees” (show in debug.log). To solve the problem I just raise the transaction fee limit and send it again. Now the error message shows: error: {“code”:-26,“message”:“16: mandatory-script-verify-flag-failed (Operation not valid with the current stack size)”} which is as same as issue#206 in github ([https://github.com/zcash/zcash/issues/206](https://github.com/zcash/zcash/issues/206)).  
I use the latest release package, and all the previous step are followed the guide. Can anyone help me to figure out the problem? Thanks a lot.

---

<div class="post-metadata">

**Author:** ![sean](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sean](https://forum.zcashcommunity.com/u/sean)\
**Post date:** [March 5, 2016, 1:24pm UTC](https://forum.zcashcommunity.com/t/signrawtransaction-false-operation-not-valid-with-the-current-stack-size/349/3 "2016-03-05T13:24:44Z")

</div>

This particular error usually shows up because the signature doesn’t work. (You may have copied keys or addresses from the guide that you should have constructed yourself.)

---

<div class="post-metadata">

**Author:** ![rxcomm](https://avatars.discourse-cdn.com/v4/letter/r/a698b9/32.png) [@rxcomm](https://forum.zcashcommunity.com/u/rxcomm)\
**Post date:** [March 7, 2016, 1:24pm UTC](https://forum.zcashcommunity.com/t/signrawtransaction-false-operation-not-valid-with-the-current-stack-size/349/4 "2016-03-07T13:24:29Z")

</div>

Be sure the rawtxn is in double quotes, i.e.

./src/zcash-cli signrawtransaction “020…”

---

<div class="post-metadata">

**Author:** ![farallon](https://avatars.discourse-cdn.com/v4/letter/f/e5b9ba/32.png) [@farallon](https://forum.zcashcommunity.com/u/farallon)\
**Post date:** [April 11, 2016, 9:42am UTC](https://forum.zcashcommunity.com/t/signrawtransaction-false-operation-not-valid-with-the-current-stack-size/349/5 "2016-04-11T09:42:09Z")

</div>

Has this been solved? I’m having the same issue as well even after following the suggestions above. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Voluntary](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/voluntary/32/4343_2.png) [@Voluntary](https://forum.zcashcommunity.com/u/Voluntary)\
**Post date:** [April 11, 2016, 11:15am UTC](https://forum.zcashcommunity.com/t/signrawtransaction-false-operation-not-valid-with-the-current-stack-size/349/6 "2016-04-11T11:15:36Z")

</div>

Same here - seems very familiar. I tried the process with and without quotes around the large hexadecimal strings.

---

<div class="post-metadata">

**Author:** ![danda](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@danda](https://forum.zcashcommunity.com/u/danda)\
**Post date:** [April 11, 2016, 4:18pm UTC](https://forum.zcashcommunity.com/t/signrawtransaction-false-operation-not-valid-with-the-current-stack-size/349/7 "2016-04-11T16:18:10Z")

</div>

You could try giving my script a try. if it works, then it must’ve been user error somehow. If not, something else is up.

> **[GitHub - dan-da/zcash-util: zcash utiltiies](https://github.com/dan-da/zcash-util)**
>
> zcash utiltiies. Contribute to dan-da/zcash-util development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![farallon](https://avatars.discourse-cdn.com/v4/letter/f/e5b9ba/32.png) [@farallon](https://forum.zcashcommunity.com/u/farallon)\
**Post date:** [April 12, 2016, 5:05am UTC](https://forum.zcashcommunity.com/t/signrawtransaction-false-operation-not-valid-with-the-current-stack-size/349/8 "2016-04-12T05:05:41Z")

</div>

danda,

Thanks, after installing PHP your scripts worked like a charm!  
I’m using VMWARE ubuntu running under Windows so the processing is a little slow but it is okay for evaluation purpose.

Question: My result list “exists” as false. Why is that? Does this mean I can’t use this protected amount? Also, this amount does not show up on my getinfo or listunspent command anymore so what command do I use to display this ‘poured’ amount? Where did it go?

{  
“amount” : 49.90000000,  
“bucket” : “805b6d2…76a”,  
“exists” : false  
}

Thanks again.

---

<div class="post-metadata">

**Author:** ![danda](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@danda](https://forum.zcashcommunity.com/u/danda)\
**Post date:** [April 12, 2016, 7:52pm UTC](https://forum.zcashcommunity.com/t/signrawtransaction-false-operation-not-valid-with-the-current-stack-size/349/9 "2016-04-12T19:52:23Z")

</div>

I asked this same question about exists:false and was told it is because the tx has not made it into a block yet.
