Creating a simple transaction
cardano-cli transactionCreating a transaction with build-raw
build-rawcardano-cli query protocol-parameters --testnet-magic 2 --out-file pparams.jsoncardano-cli query utxo --address $(cat payment.addr) --testnet-magic 2cardano-cli transaction build-raw --babbage-era \
--tx-in $(cardano-cli query utxo --address $(cat payment.addr) --testnet-magic 2 --out-file /dev/stdout | jq -r 'keys[0]') \
--tx-out $(cat paymentwithstake.addr)+5000000000 \
--tx-out $(cat payment.addr)+5000000000 \
--fee 0 \
--protocol-params-file pparams.json \
--out-file tx.draftcardano-cli transaction calculate-min-fee --tx-body-file tx.draft \
--testnet-magic 2 \
--protocol-params-file pparams.json \
--tx-in-count 1 \
--tx-out-count 2 \
--witness-count 1 Creating a transaction with build
buildLast updated
