<p>solved, this helped: <a href="https://github.com/input-output-hk/Vasil-testnet/blob/main/reference-inputs-cip-31.md" rel="nofollow noreferrer">https://github.com/input-output-hk/Vasil-testnet/blob/main/reference-inputs-cip-31.md</a></p>
<p>problem was in syntax, referenced input must be provided with --read-only-tx-in-reference option</p>

CC BY-SA 4.0
2022-12-30T11:03:34.663Z
2022-12-30T11:03:34.663Z
serx
<p>I already have utxos with inline datum sitting at a wallet address (not in a smart contract address):
<a href="https://i.sstatic.net/WYl8w.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/WYl8w.png" alt="wallet utxos" /></a></p>
<p>now I want to use this utxo in another transaction, in order to inspect it's datum, without spending the utxo:</p>
<pre><code>cardano-cli transaction build-raw \
--babbage-era \
--tx-in fcb7f6692469d9a2eefb04e05241d3288aad4849303da5369465bb395cf9fe8c#1   
--tx-in-inline-datum-present
--tx-in {other utxo to be spent}
... some outputs ...
--tx-in-collateral {collateral utxo}
--protocol-params-file pparams.json
... and so on, the usual stuff
</code></pre>
<p>The thing is, once I call 'transaction submit' command, I get an error:</p>
<pre><code>Invalid option `--tx-in'
</code></pre>
<p>I am 100% confident, that error is raised from inline datum related commands. What am I doing wrong? Maybe it is impossible to read inline datums from simple wallet addresses, only from validators (by also providing plutus scripts, datums, redeemers, etc.). Or maybe my cardano-cli syntax is wrong and I am missing something?</p>
<p>EDIT:
screenshots of the exact cardano-cli commands:
<a href="https://i.sstatic.net/hBKCW.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/hBKCW.png" alt="failing syntax" /></a></p>
<p><a href="https://i.sstatic.net/z2kVs.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/z2kVs.png" alt="correct syntax" /></a></p>

CC BY-SA 4.0
2022-12-29T17:36:48.327Z
Can you screenshot your command and the error message exactly?
Marek Mahut - StakeNuts
CC BY-SA 4.0
2022-12-30T09:20:15.870Z
edited the post
serx
<cardano-cli>
cardano-cli transaction with inline datum
# cardano-cli transaction with inline datum

(Asked by: username_0 on 2022-12-29)

I already have utxos with inline datum sitting at a wallet address (not in a smart contract address):

now I want to use this utxo in another transaction, in order to inspect it's datum, without spending the utxo:
cardano-cli transaction build-raw \
--babbage-era \
--tx-in fcb7f6692469d9a2eefb04e05241d3288aad4849303da5369465bb395cf9fe8c#1   
--tx-in-inline-datum-present
--tx-in {other utxo to be spent}
... some outputs ...
--tx-in-collateral {collateral utxo}
--protocol-params-file pparams.json
... and so on, the usual stuff

The thing is, once I call 'transaction submit' command, I get an error:
Invalid option `--tx-in'

I am 100% confident, that error is raised from inline datum related commands. What am I doing wrong? Maybe it is impossible to read inline datums from simple wallet addresses, only from validators (by also providing plutus scripts, datums, redeemers, etc.). Or maybe my cardano-cli syntax is wrong and I am missing something?
EDIT:
screenshots of the exact cardano-cli commands:

**Tags:** cardano-cli
> **Comments:**
> **username_1**: Can you screenshot your command and the error message exactly?  
> **username_0**: edited the post  

---

## 1 answers

### Answer by username_0 on 2022-12-30. Score: 0

solved, this helped: <https://github.com/input-output-hk/Vasil-testnet/blob/main/reference-inputs-cip-31.md>

problem was in syntax, referenced input must be provided with --read-only-tx-in-reference option


---

