This is very similar the topic I made but I prefer to make another one, because the withdrawal was succeeded, now I’m having problems to send the rewards to my wallet address. I did similar things before sending native assets, but its the first time sending only ADA from one address to another, in this case a Daedallus address…
Node is running 1.27.0 and fully synced.
I’m pasting the commands I already tried using this guide from Cardano-node GitHub which supposedly to be correct…
$txin 0 737045127 lovelace
Draft transaction
cardano-cli transaction build-raw
–tx-in $txin#4
–tx-out $(cat payment2.addr)+0
–tx-out $(cat payment.addr)+0
–invalid-hereafter 0
–fee 0
–out-file tx.draft
Calculate min fees
cardano-cli transaction calculate-min-fee
–tx-body-file tx.draft
–tx-in-count 1
–tx-out-count 2
–witness-count 1
–byron-witness-count 0
–mainnet
–protocol-params-file protocol.json
176413 Lovelace
expr - -
expr 737045127 - 690381863 - 176413
46486851
Query tip
cardano-cli query tip --mainnet
{
“epoch”: 267,
“hash”: “2cbaaaa6ad3985d8406f83c42934bcfa1f803f0b5f5e5080ef21e3901bb7e1c4”,
“slot”: 30043444,
“block”: 5747274,
“era”: “Mary”
}
Build raw
cardano-cli transaction build-raw
–tx-in $txin#4
–tx-out $(cat payment2.addr)+690381863
–tx-out $(cat payment.addr)+46486851
–invalid-hereafter 30049012
–fee 176413
–out-file tx.raw
Sign
cardano-cli transaction sign
–tx-body-file tx.raw
–signing-key-file payment.skey
–mainnet
–out-file tx.signed
Submit
cardano-cli transaction submit --tx-file tx.signed --mainnet
Full error
Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraMary (ApplyTxError [UtxowFailure (UtxoFailure (ValueNotConservedUTxO (Value 0 (fromList )) (Value 737045127 (fromList )))),UtxowFailure (UtxoFailure (BadInputsUTxO (fromList [TxInCompact (TxId {_unTxId = SafeHash “”}) 4])))])
I still don’t know what’s going on. Clear is about the values in the address not be corrected, still didn’t get it how to make the correct calculations.