Sending ADA from node back to Daedalus

Hello all,

So I am trying to send 550 ADA that is stored in my UTxO key address back to my Daedalus wallet. I have tried following the Cardano docs for “Creating a simple transaction”, but I keep getting errors. Would it be possible for someone to write a dummy transaction so I can reference it? Kind of stuck at the moment.


1 Like

Hi @Tylert16

There is this document also that might be more precise:

What error are you getting? which step?


Hello @stiiiif,

So I am following the guide you sent. I currently at the part where I am building the transaction…this is the error: “Build a transaction (low-level, inconvenient)”.

Here are the steps I did and the output for them:

  1. currentSlot=$(cardano-cli shelley query tip --mainnet | jq -r ‘.slotNo’)
    echo Current Slot: $currentSlot

  2. amountToSend=550000000
    echo amountToSend: $amountToSend

  3. destinationAddress=addr1qxp4hx4haq69l5azyj3hd9kz56y5395cuy2ryxs6rak30208xqw08gk8lwj5v8hhwgel99xczgrmxqgfchh3m6zejpjsulje5j
    echo destinationAddress: $destinationAddress

  4. Found my balance and UTXOS:
    Total ADA balance: 550000000
    Number of UTXOs: 1

  5. Built the raw transaction:

cardano-cli shelley transaction build-raw
{tx_in} \ --tx-out (cat payment.addr)+0
–tx-out {destinationAddress}+0 \ --ttl (( ${currentSlot} + 10000))
–fee 0
–out-file tx.tmp

  1. Calculated Fee:
    fee: 176589

  2. Calculated change in output

echo Change Output: ${txOut}
Change Output: -176589

  1. Built the transaction

cardano-cli shelley transaction build-raw
{tx_in} \ --tx-out (cat payment.addr)+{txOut} \ --tx-out {destinationAddress}+{amountToSend} \ --ttl (( {currentSlot} + 10000)) \ --fee {fee}
–out-file tx.raw

When I build the transaction I get this message: “Build a transaction (low-level, inconvenient)”

Is the negative output I’m getting in step 7 above causing the problem?

I even continued on just to see… copied the txt.raw to cold environment. Signed the transaction. Copied txt.signed to hot environment. Sent the signed transaction. Then got this error:

Error while submitting tx: ApplyTxError [LedgerFailure (DelegsFailure (DelplFailure (DelegFailure (StakeDelegationImpossibleDELEG (KeyHashObj (KeyHash “2349d8972e90a01649657fca986b87d2ff5a9a8a162c7*******”)))))),LedgerFailure (DelegsFailure (DelplFailure (PoolFailure (StakePoolCostTooLowPOOL (Coin 340000) (Coin 340000000))))),LedgerFailure (UtxowFailure (MissingVKeyWitnessesUTXOW (WitHashes (fromList [KeyHash “12bf3209e29d48099e12da17b1acd30f7508f76a78f897d9f6c****”,KeyHash “2349d8972e90a01649657fca986b87d2ff5a9a8a162c7fcb0de****”]))))]

Replaced some of the hash with stars because Im not sure if it is unsafe to post those hashes.

From this logs, I see you have 550 ada
and you want to send 550 ada
but you have to take into account that each transaction has some fees.

Step 7, the change output should be at least 0 or more, but from your logs:
Change Output: -176589

cardano-cli shelley transaction build-raw
{tx_in} \ --tx-out (cat payment.addr)+{txOut} \ --tx-out {destinationAddress}+{amountToSend} \ --ttl (( {currentSlot} + 10000)) \ --fee {fee}
–out-file tx.raw

did you forget the " /" after –fee {fee} which would imply your tx.raw wasn’t being output - meaning you are perhaps submitting an old tx.raw for a completely different transaction.

Your friend, FROG

maybe you

1 Like

can some please clearify this:

while read -r utxo; do
in_addr=$(awk '{ print 1 }' <<< "{utxo}")
idx=$(awk '{ print 2 }' <<< "{utxo}")
utxo_balance=$(awk '{ print 3 }' <<< "{utxo}")
total_balance=(({total_balance}+{utxo_balance})) echo TxHash: {in_addr}#{idx} echo ADA: {utxo_balance}
tx_in="{tx_in} --tx-in {in_addr}#{idx}" done < balance.out txcnt=(cat balance.out | wc -l)
echo Total ADA balance: {total_balance} echo Number of UTXOs: {txcnt}

how do i enter this in the terminal I get errors

That looks a bit whack.

You could try adding it to a bash script and run it that way. A better exercise would be to take half hour and learn to execute transactions manually:

run this to get your utxo data (utxo, TxIx and lovelace amount) - do this from hot node

cardano-cli shelley query utxo --address [payment-addrress] --mainnet

calculate hom much ADA you will have left in payment address after transaction

expr [lovelaces in utxo] - [transaction fee]

build transaction - do this on cold node:

cardano-cli shelley transaction build-raw \
–tx-in [utxo-string]#[TxIx] \
–tx-out $(cat payment.addr)+[utxo-lovelaces] - [transaction-fee] \
–ttl [current-slot + 100000] \
–fee 200000 \
–out-file tx.raw

sign transaction - do this on cold node:

cardano-cli shelley transaction sign \
–tx-body-file tx.raw \
–signing-key-file payment.skey \
–mainnet \
–out-file tx.signed

submit transaction (bring tx.signed from cold machine to hot machine):

cardano-cli shelley transaction submit \
–tx-file tx.signed \

In this example we use a transaction fee of 200,000 lovelaces.

Your friend, FROG


Hello together,

please, could someone show the way to send ADA from my payment.addr to a Daedalus Address?
My way doesn’t work. Please see below.

cardano-cli shelley transaction build-raw
–tx-in payment.addr#1
–tx-out (cat addr1q8z...)+10000000 \ --tx-out (cat payment.addr)+0
–ttl 0
–fee 0
–out-file tx.raw

Thanks a lot,

U will need to fix some parameters for example the fee. I hope this link will b helpful

I do the following steps.
I don’t get an error message at the end. But the transaction is not carried out!

As I know shelley comand was deprecated… try without shelley

I work with version 1.19.0. Could this be the reason for the problem?

Yes, we are in allegra era now; u must updaye ur node to 1.24.2 version

and also shelley subcommand was deprecated…

Thanks a lot for your quick help. I’ll try it.