Ok it turned out I was a bit confused about the way fees and change is handled here. Here are the commands that worked for me:
createrawtransaction "[]" "[{\"$UADDR\":1.2},{\"$UCHANGE\":1.8}]" 0 false "{\"$UADDR\":\"$ASSET\",\"$UCHANGE\":\"$ASSET\"}"
fundrawtransaction $RTX "{\"changeAddress\":\"$UFEECHANGE\",\"includeWatching\":true}"
blindrawtransaction $RTX
- and then on the signing side
signrawtransactionwithwallet $RTX
Some comments:
- the change address given in the
fundrawtransaction
command is actually used for the change of the fees paid in L-BTC, since here fees are explicit, not like in Bitcoin. That's why I added an explicit change address and amount for the asset I was sending. - I used unconfidential addresses to create the raw transaction
includeWatching
is not implicitlytrue
like in a bitcoin watch-only wallet- the tx worked, it was broadcasted and accepted by the network, but there's still something wrong with the blinding, the destination output has not been blinded, and on the other hand I messed up the change of the fee, it seems I can't unblind it myself