Error: Transaction validaton error: Negative quantity in transaction output:

The --tx-ins/TxHashes are transaction IDs of past transactions into an address. They can’t be made bigger after the fact. In that transaction only a specific amount of ADA and tokens went into that address.

Exactly that. You can use a lot of --tx-ins in a transaction. Just give enough into it, so that you can cover all the minimal UTxO values of the --tx-outs you want to have.

As said, you will need to balance all the tokens in the --tx-ins, not just the ones that you want to do something with.

And as also said: build is simpler than build-raw with all the protocol parameter and calculate-min-fee stuff: Please use `cardano-cli transaction build` instead of `cardano-cli transaction build-raw`

1 Like