Common transaction elements

Here are items you will need, and commands to generate them, that you can copy & paste from this saved web page… or from your low-security notes file itself, if these snippets have your personal data (e.g. your pool stake address)… into your notes file as you're preparing Cardano transactions for the Frankenwallet.

Your workflow: run these commands and put the results into the "data" part of your transaction template, so they're available in the Frankenwallet when you run the commands in that template.

On your Cardano node (stake pool relay, block producer, or through a port generated by Daedalus):


Query for pledge address, or other transaction inputs (e.g. payment for transaction fees):

cardano-cli query utxo --mainnet --address addrAddress
  • result(s) recorded as UTxO#index
  • this makes it easier to plug into cardano-cli commands
  • if more than one UTxO at address, and if you need more than one, record the list

Query rewards account:

cardano-cli query stake-address-info --mainnet --address stakeAddress

Get current protocol.json:

cardano-cli query protocol-parameters --mainnet --out-file protocol.json
  • see if it's changed... if not, copy to your host folder

Get the current tip + a margin = the TTL or --invalid-hereafter… e.g. to add 1 hour to current slot time:

cardano-cli query tip --mainnet | jq .slot | awk '{print $NF + 3600}'

➤ Hint: you can make aliases for any of these commands in your Frankenwallet user account.

(optional) On the machine hosting your Wallet, collect a pool of addresses:

➤ Hint: if your Daedalus wallet is slow to sync, you can save up a few extra Deposit addresses & put in the low security encrypted file in the host folder where you put your templates & scripts.

  • This prevents you from having to wait for Daedalus to start or sync (in September 2021, still a source of unpredictable delays for many users)… you'll always have the next few addresses ready to go (to receive stake pool rewards or other transaction outputs).
Last updated: