# Need help with cardano-cli transaction building with multiple utxo

**URL:** <https://forum.cardano.org/t/need-help-with-cardano-cli-transaction-building-with-multiple-utxo/140828>\
**Category:** Transaction Metadata\
**Tags:** cardano-node\
**Created:** [15 December 2024 15:09 UTC](https://forum.cardano.org/t/need-help-with-cardano-cli-transaction-building-with-multiple-utxo/140828 "2024-12-15T15:09:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmc77](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/pmc77/32/82582_2.png) [@pmc77](https://forum.cardano.org/u/pmc77)\
**Post date:** [15 December 2024 15:09 UTC](https://forum.cardano.org/t/need-help-with-cardano-cli-transaction-building-with-multiple-utxo/140828/1 "2024-12-15T15:09:51Z")

</div>

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

```auto
& "C:\Program Files\Daedalus Mainnet\cardano-cli.exe" latest query protocol-parameters --out-file pparams.json --mainnet

```

utxo query of sender wallet:

```auto
                           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:

```auto
## 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

```auto
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:

```auto
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:

```auto
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?

---

<div class="post-metadata">

**Author:** ![HeptaSean](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/heptasean/32/82306_2.png) [@HeptaSean](https://forum.cardano.org/u/HeptaSean)\
**Post date:** [15 December 2024 15:59 UTC](https://forum.cardano.org/t/need-help-with-cardano-cli-transaction-building-with-multiple-utxo/140828/2 "2024-12-15T15:59:15Z")

</div>

> [@pmc77](#):
>
> 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.

Probably was not finished synchronising … it can take days.

> [@pmc77](#):
>
> EDIT: I completely removed and reinstalled Daedaelus. When I try to build the trx now with “build” I get the message:
> 
> ```auto
> 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?

Which also explains this. When you just reinstalled, it starts again synchronising with Byron and hasn’t come far when you tried.

---

<div class="post-metadata">

**Author:** ![pmc77](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/pmc77/32/82582_2.png) [@pmc77](https://forum.cardano.org/u/pmc77)\
**Post date:** [15 December 2024 16:46 UTC](https://forum.cardano.org/t/need-help-with-cardano-cli-transaction-building-with-multiple-utxo/140828/3 "2024-12-15T16:46:47Z")

</div>

> [@HeptaSean](#):
>
> Which also explains this. When you just reinstalled, it starts again synchronising with Byron and hasn’t come far when you tried.

Ok, thanks. I will wait until the sync is done and try again.
