I’m using the following command to build a transaction to send all tokens/NFTs and ADA from multiple wallets to a single wallet and it works just fine. With the use of --change-address
parameter the single receiver wallet gets all the ADA and tokens which basically empties all the multiple input wallets.
cardano-cli transaction build --mainnet --alonzo-era $TX_INS --tx-out "$TX_OUTS" --change-address $RECEIVER_ADDR --witness-override $N --out-file matx.raw
Now what i want to do is just to send the tokens/nft and each input wallets should get the ADA change. I’m not really sure if using multiple --change-address
parameters work that way.
Will this command works with multiple --change-address
parameters?
cardano-cli transaction build --mainnet --alonzo-era $TX_INS --tx-out "$TX_OUTS" --change-address $RECEIVER_ADDR1 --change-address $RECEIVER_ADDR2 --change-address $RECEIVER_ADDR3 --witness-override $N --out-file matx.raw