Z8 error trying to run joinsplit

I’m getting an error “code: -22, TX decode failed” with the following:

zcash/src/zcash-cli zcrawjoinsplit "$rawtx" '{}' "{\"$addr\":1.709}" 1.709 0

where 

$rawtx= 

zcash/src/zcash-cli createrawtransaction '[{"txid":"$txid","vout":0}]' '{}'

and $txid and $addr are long and correct  (no \n's or excess "'s).

Has anyone successfully run the joinsplit as described in the alpha guide?

Make sure your RAWTX, TXID variables are presented in linux environment by type command env in terminal.

Alternatively you can use str4d’s basic tool to send the payment. It is on this forum.

2 Likes