<p>You were on the right track, the key is to add <code>--cddl-format</code> to the build command</p>

CC BY-SA 4.0
2022-07-06T22:09:08.057Z
2022-07-06T22:09:08.057Z
wutzebaer
<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>

CC BY-SA 4.0
2022-03-30T03:21:55.667Z
Typhon Wallet Dapp connector is an alternative to CIP-0030 standard where You don't need to build transactions in the backend with Cardano CLI or build transactions in front-end application after fetching UTXOs. https://cardano.stackexchange.com/a/7658/117
Mehul Prajapati
CC BY-SA 4.0
2022-07-06T19:38:11.480Z
i am at the same point, did you figure out what is wrong?
wutzebaer
<transaction><cbor><nami><cip>
Can someone show me how to get the transaction in the proper format for cip-30?
# Can someone show me how to get the transaction in the proper format for cip-30?

(Asked by: username_0 on 2022-03-25)

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>

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

**Tags:** transaction, cbor, nami, cip
> **Comments:**
> **username_1**: Typhon Wallet Dapp connector is an alternative to CIP-0030 standard where You don't need to build transactions in the backend with Cardano CLI or build transactions in front-end application after fetching UTXOs. https://cardano.stackexchange.com/a/7658/117  
> **username_2**: i am at the same point, did you figure out what is wrong?  

---

## 1 answers

### Answer by username_2 on 2022-07-06. Score: 1

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


---

