I’ve been trying to send TAZ from my private address to a transparent one.
root@kali:~/Desktop/zcash/src# ./zcash-cli z_getbalance $ZADDR
12.88462260
root@kali:~/Desktop/zcash/src# ./zcash-cli z_sendmany $ZADDR “[{"address": "n4MXbgneZrJKYDQZrAqyeXsXcfgD3KcPqf", "amount": 10.0}]”
opid-498fce8a-1502-4d45-9a1f-94e385aa0598
root@kali:~/Desktop/zcash/src# ./zcash-cli z_getoperationstatus ["opid-498fce8a-1502-4d45-9a1f-94e385aa0598"]
[
{
“id” : “opid-498fce8a-1502-4d45-9a1f-94e385aa0598”,
“status” : “executing”,
“creation_time” : 1473663892
}
]
Several minutes later (it takes a while “executing”)…
root@kali:~/Desktop/zcash/src# ./zcash-cli z_getoperationstatus ["opid-498fce8a-1502-4d45-9a1f-94e385aa0598"]
[
{
“id” : “opid-498fce8a-1502-4d45-9a1f-94e385aa0598”,
“status” : “failed”,
“creation_time” : 1473663892,
“error” : {
“code” : -26,
“message” : “18: bad-txns-joinsplit-requirements-not-met”
}
}
]
I’ve tried it twice.
Does anyone know what I’m doing wrong? Hopefully it’s not too obvious…
Update: I’ve now tried this, to see if I needed to be sending TAZ to a private address as well as a transparent one ($ZADDR2 is a new private address that I just created):
root@kali:~/Desktop/zcash/src# ./zcash-cli z_sendmany $ZADDR “[{"address": "$ZADDR2", "amount": 0.1}, {"address": "n4MXbgneZrJKYDQZrAqyeXsXcfgD3KcPqf", "amount": 10.0}]”
opid-880ad9f8-5cd0-4536-9d3e-f891879f41e1
…
root@kali:~/Desktop/zcash/src# ./zcash-cli z_getoperationstatus ["opid-880ad9f8-5cd0-4536-9d3e-f891879f41e1"]
[
{
“id” : “opid-880ad9f8-5cd0-4536-9d3e-f891879f41e1”,
“status” : “failed”,
“creation_time” : 1473669802,
“error” : {
“code” : -4,
“message” : “Could not find previous JoinSplit anchor”
}
}
]
Update 2: I think it might be because the operation involves too many individual joinsplits, since there are around 40 small notes which need to be processed to get one single note of 10 TAZ. When I tried to send all my balance of ~12 TAZ to $ZADDR2, I got the original requirements-not-met error, but when I reduced it to only 4.0 TAZ, it was successful.
Update 3: It’s not working at all now (sending from one z-addr to another), I’m getting the requirements-not-met error no matter the amount I choose. I looked at the debug log (using -debug=“asyncrpc”) but it doesn’t really help. I thought for a while it might be something to do with memory allocation, but I don’t know now.