Withdraw all fund from payment.addr

I have already retired my pool and transferred all funds to the payment.addr. Now I want to transfer all funds from payment to my personal wallet and shutdown the servers, but I receive the following error when I submit the signed transaction:

Command failed: transaction submit  Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraMary (ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure (OutputTooSmallUTxO [(Addr Mainnet (KeyHashObj (KeyHash "65546106af95141987d0292a40df583da65d12baa2bee3326536cbed")) (StakeRefBase (KeyHashObj (KeyHash "c3cf4973c39727cf6da2c8430c951e2931e1ef047d8b66c2c93f330a"))),Value 87 (fromList []))])))])

Here is what I have done:
I used the following command and it shows I have 508262976 lovelace in the payment.addr

cardano-cli query utxo --address $(cat payment.addr) --mainnet

Then calculate the fee which was 176589

I tried to transfer 508086300 which is less than 508262976 - 176589

Is the node synced?

Also try this topic

Yes, the node is synced,

Iā€™m not sure how the thread your shared can be adopted to my case. To my understanding the problem is having a transaction less than minUTxOValue which in my case is 87 the remaining money back to payment.addr. Here is my build command. Any thoughts are highly appreciated:

cardano-cli transaction build-raw \
    ${tx_in} \
    --tx-out $(cat payment.addr)+87 \
    --tx-out ${destinationAddress}+508086300\
    --invalid-hereafter $(( ${currentSlot} + 10000)) \
    --fee ${fee} \
    --out-file tx.raw

@saghi The value of the Tx must be preserved. i.e. TxIn - TxOut - Fees == 0
You can have multiple TxIn/TxOut but the above must still be true

1 Like