user6436: I have generate a transaction using cardano-cli and I am trying to get Nami wallet to sign the transaction.
The command to build the transaction

cardano-cli transaction build-raw 
--fee 0 
--tx-in $browserTxHash#$browserTxIx 
--tx-out ${desktopAddress}+5000000 
--tx-out ${browserAddress}+10000000 
--out-file transaction.raw

Which writes the following to the file "transaction.raw"

{
"type": "TxBodyAlonzo",
"description": "",
"cborHex": "86a50081825820e34a60ee397dee115b75379af692962dabc085bed002fc0371e578ebd27acd62000d80018282581d60bf1466152d256eb5e8b490c5febc029593f0e9a5b9ee270d75ba35491a004c4b4082583900d9cdd3ead63bd0db91bd83cfa9f3d588bb05a3fb487d5eb62946672cbfcbf21db7267631bbd23f1b8744b9491088eda66ba2ec0e7d2d98841a0098968002000e809fff8080f5f6"
}

I then tried using the CIP-30 based javascript command with nami in the chrome console to request a transaction signature with the command

namiAPI.signTx("86a50081825820e34a60ee397dee115b75379af692962dabc085bed002fc0371e578ebd27acd62000d80018282581d60bf1466152d256eb5e8b490c5febc029593f0e9a5b9ee270d75ba35491a004c4b4082583900d9cdd3ead63bd0db91bd83cfa9f3d588bb05a3fb487d5eb62946672cbfcbf21db7267631bbd23f1b8744b9491088eda66ba2ec0e7d2d98841a0098968002000e809fff8080f5f6",
partialSign=true)

However, I get an error:
"Inputs do not conform to this spec or are otherwise invalid."
The CIP-30 spec from https://github.com/cardano-foundation/CIPs/tree/master/CIP-0030 is as follows:

api.signTx(tx: cbor, partialSign: bool = false):
Promise<cbor<transaction_witness_set>>

I am passing a cbor encoded string (I think), so why is this not working/what should that input look like?

user7: You were on the right track, the key is to add --cddl-format to the build command

6436: <p>I have generate a transaction using cardano-cli and I am trying to get Nami wallet to sign the transaction.</p>
<p>The command to build the transaction</p>
<blockquote>
<p>cardano-cli transaction build-raw <br />
--fee 0 <br />
--tx-in $browserTxHash#$browserTxIx <br />
--tx-out ${desktopAddress}+5000000 <br />
--tx-out ${browserAddress}+10000000 <br />
--out-file transaction.raw</p>
</blockquote>
<p>Which writes the following to the file &quot;transaction.raw&quot;</p>
<blockquote>
<p>{
&quot;type&quot;: &quot;TxBodyAlonzo&quot;,
&quot;description&quot;: &quot;&quot;,
&quot;cborHex&quot;: &quot;86a50081825820e34a60ee397dee115b75379af692962dabc085bed002fc0371e578ebd27acd62000d80018282581d60bf1466152d256eb5e8b490c5febc029593f0e9a5b9ee270d75ba35491a004c4b4082583900d9cdd3ead63bd0db91bd83cfa9f3d588bb05a3fb487d5eb62946672cbfcbf21db7267631bbd23f1b8744b9491088eda66ba2ec0e7d2d98841a0098968002000e809fff8080f5f6&quot;
}</p>
</blockquote>
<p>I then tried using the CIP-30 based javascript command with nami in the chrome console to request a transaction signature with the command</p>
<blockquote>
<p>namiAPI.signTx(&quot;86a50081825820e34a60ee397dee115b75379af692962dabc085bed002fc0371e578ebd27acd62000d80018282581d60bf1466152d256eb5e8b490c5febc029593f0e9a5b9ee270d75ba35491a004c4b4082583900d9cdd3ead63bd0db91bd83cfa9f3d588bb05a3fb487d5eb62946672cbfcbf21db7267631bbd23f1b8744b9491088eda66ba2ec0e7d2d98841a0098968002000e809fff8080f5f6&quot;,
partialSign=true)</p>
</blockquote>
<p>However, I get an error:
&quot;Inputs do not conform to this spec or are otherwise invalid.&quot;</p>
<p>The CIP-30 spec from <a href="https://github.com/cardano-foundation/CIPs/tree/master/CIP-0030" rel="nofollow noreferrer">https://github.com/cardano-foundation/CIPs/tree/master/CIP-0030</a> is as follows:</p>
<blockquote>
<p>api.signTx(tx: cbor, partialSign: bool = false):
Promise&lt;cbor&lt;transaction_witness_set&gt;&gt;</p>
</blockquote>
<p>I am passing a cbor encoded string (I think), so why is this not working/what should that input look like?</p>
 7: <p>You were on the right track, the key is to add <code>--cddl-format</code> to the build command</p>
