Recover from old private/public key without mnemonic phrase

I had a stakepool for a little while in august of 2020, but it’s not running anymore. I noticed there is still quite some ADA in the old stake address. I still have the signing/verification keys ( Is there a convenient way to use one of the CLI binaries in my macOS Daedalus Flight/Contents/MacOS/ to recover that old staking address wallet into my Daedalus so I can send the old ADA to my main wallet? Otherwise; can I instantly use the CLI tools to send the remaining ADA to my main wallet’s (one of the~) receiving address?

Thank you in advance!

U will need a cli node… to send the ADA out of the wallet

I have those available. I just don’t know the correct formulation on the CLI to send all ADA from my wallet to another address:

Its a four step process …

#1 Retire the pool to get the 500 ADA deposit back
#2 Withdraw all remaining staking rewards
#3 Retire the the stake address to get 2 ADA deposit back
#4 Send all to an external address (hopefully secured by a HW wallet)

Where would you like to start?

#4. The pool was already retired last year. The address holds the 500 ADA.

Ok, then it’s something like this …

Get protocol parameters

cardano-cli query protocol-parameters \
    --out-file /var/cardano/local/scratch/protocol.json \
    --mary-era \

Get the transaction hash and index of the UTXO to spend

PAYMENT_ADDR=`cat cardano/keys/${OWNER}/payment.addr`

cardano-cli query utxo \
  --address $PAYMENT_ADDR \
  --mary-era \
                           TxHash                                 TxIx        Amount
c10171ef..                                                           1        35308656 lovelace

Draft the transaction

UTOX_LVC=`expr 35308656 + 0`


cardano-cli transaction build-raw \
    --tx-in $TX_IN1 \
    --tx-out $TO_ADDR+0 \
    --ttl 0 \
    --fee 0 \
    --out-file /var/cardano/local/scratch/tx.draft

Calculate the fee

cardano-cli transaction calculate-min-fee \
    --protocol-params-file /var/cardano/local/scratch/protocol.json \
    --tx-body-file /var/cardano/local/scratch/tx.draft \
    --tx-in-count 1 \
    --tx-out-count 1 \
    --witness-count 1 \

> 170869 Lovelace

Calculate the change to send back to PAYMENT_ADDR

echo "$SEND_LVC Lovelace"

Determine the TTL (time to Live) for the transaction

SLOTNO=`cardano-cli query tip --mainnet | jq -c | jq ".slotNo"`

TTL=`expr $SLOTNO + 3600`
echo "slotNo: $SLOTNO"
echo $TTL

Build the transaction

cardano-cli transaction build-raw \
    --tx-in $TX_IN1 \
    --tx-out $TO_ADDR+$SEND_LVC \
    --ttl $TTL \
    --fee $FEES_LVC \
    --out-file /var/cardano/local/scratch/tx.raw

Sign the transaction

cardano-cli transaction sign \
    --tx-body-file /var/cardano/local/scratch/tx.raw \
    --signing-key-file /var/cardano/local/keys/${OWNER}/payment.skey \
    --mainnet \
    --out-file /var/cardano/local/scratch/tx.signed

Submit the transaction

cardano-cli transaction submit \
    --tx-file /var/cardano/local/scratch/tx.signed \

Sorry for the late reply; I was a bit busy. I needed to make some small adjustments and figure out the CARDANO_NODE_SOCKET_PATH, but it all worked. Thank you kindly good sir!

1 Like