Hey
I am trying to build a transaction with cardano-cli with multiple utxo and also assets besides the lovelace. I am using powershell and running Daedalus node in background.
First I queried the protocol parameters
& "C:\Program Files\Daedalus Mainnet\cardano-cli.exe" latest query protocol-parameters --out-file pparams.json --mainnet
utxo query of sender wallet:
TxHash TxIx Amount
--------------------------------------------------------------------------------------
49e9b79688222b73d1a39b35391915beb6dd728546370f079b84f3b5f83d2415 0 3000000 lovelace + TxOutDatumNone
7203ec316685f1b731ce38847b17a5f77cdf4444c89aeace610108aa0b77089c 1 2025963 lovelace + TxOutDatumNone
f358ad90fc7db403de21f8da7f3e4a2de0a62ec64e586997e76296aaad2aaa01 3 1650000 lovelace + 1 a5bb0e5bb275a573d744a021f9b3bff73595468e002755b447e01559.484f534b594361736847726162303030303136343037 + 1 a5bb0e5bb275a573d744a021f9b3bff73595468e002755b447e01559.484f534b594361736847726162303030303136343038 + TxOutDatumNone
build the trx draft fails:
## total lovelace: 3000000+2025963+1650000 = 6675963
& "C:\Program Files\Daedalus Mainnet\cardano-cli.exe" latest transaction build-raw `
--tx-in 49e9b79688222b73d1a39b35391915beb6dd728546370f079b84f3b5f83d2415#0 `
--tx-in 7203ec316685f1b731ce38847b17a5f77cdf4444c89aeace610108aa0b77089c#1 `
--tx-in f358ad90fc7db403de21f8da7f3e4a2de0a62ec64e586997e76296aaad2aaa01#3 `
--tx-out "$address2+6675963+ 1 a5bb0e5bb275a573d744a021f9b3bff73595468e002755b447e01559.484f534b594361736847726162303030303136343037 + 1 a5bb0e5bb275a573d744a021f9b3bff73595468e002755b447e01559.484f534b594361736847726162303030303136343038" `
--tx-out "$address1+0" `
--fee 0 `
--protocol-params-file pparams.json `
--out-file tx.draft
The error is
Command failed: transaction build-raw Error: Error while decoding the protocol parameters at: "pparams.json" Error: "Error in $: key \"poolVotingThresholds\" not found"
When playing around with cardano-cli scripts I once got the message:
Error: The era of the node and the tx do not match. The node is running in the Alonzo era, but the transaction is for the Conway era.
So I am not sure if this has anything to do with it? Also, why is Daedalus running in Alonzo? I have just updated it.
Thanks for any help.
EDIT: I completely removed and reinstalled Daedaelus. When I try to build the trx now with “build” I get the message:
Command failed: transaction build Error: Byron era not supported
Does that mean, those wallets were created in Byron aera and now I cannot work with them anymore?