Can someone please show an example of how to do this.
For example - if I need to include the "keyDeposit": 400000,
amount in the transaction.
where do i do that? do I add 400000 to the fee? or do i simply minus 400000 from the amount returned to the Output?
For example if I have an UtXO with balance of 2000000000
and I pay a fee of 200000
and the key deposit is 400000
should I build the transaction like this?
cardano-cli shelley transaction build-raw
–tx-in 89290f1e6871dbbeb2d1521a169834ac1f81882604340f458d2bce483b9ba4e0#1
–tx-out $(cat ~/stake-keys/owner_payment_1.addr)+1994000000
–ttl 618000
–fee 200000
–certificate-file ~/certs/owner_stake_1.cert
–out-file tx3.raw \
or like this:
cardano-cli shelley transaction build-raw
–tx-in 89290f1e6871dbbeb2d1521a169834ac1f81882604340f458d2bce483b9ba4e0#1
–tx-out $(cat ~/stake-keys/owner_payment_1.addr)+1994000000
–ttl 618000
–fee 600000
–certificate-file ~/certs/owner_stake_1.cert
–out-file tx3.raw \
?