user5078: I am trying to build a transaction with the libary of cardano-client-lib (java sdk).
Inorder to build a transaction one needs to provide an account object which can only be created with the mnemonic phase, which is clearly a problem.
I thought of using Nami wallet API as a walkaround, but seems unable to get the specific instance of the wallet in java.  is there a way to build a transaction in java with nami api?
thanks.

user1075: Nami is a web wallet and injects its API into your website. It is not supposed to work with desktop applications but only with web apps. I recommend you to build your app with react + typescript + emurgo/cardano-serialization-lib-browser. That is how I built this minting app

user1900: Another option:
Transaction can be built in Java backend and then sent to Nami for signing.
Here's a sample code for Multi-sig token mint where
(Not exactly same but similar approach can be used for your scenario)

Mint Transaction is built in Java backend
Sign by Nami extension in the browser
Send the witness back to Java backend
Assemble transaction again with other witnesses in Java backend and submit the final transaction

MultiSigTokenMint With Java + Nami

5078: <p>I am trying to build a transaction with the libary of cardano-client-lib (java sdk).
Inorder to build a transaction one needs to provide an account object which can only be created with the mnemonic phase, which is clearly a problem.</p>
<p>I thought of using Nami wallet API as a walkaround, but seems unable to get the specific instance of the wallet in java.  is there a way to build a transaction in java with nami api?</p>
<p>thanks.</p>
 1075: <p>Nami is a web wallet and injects its API into your website. It is not supposed to work with desktop applications but only with web apps. I recommend you to build your app with react + typescript + emurgo/cardano-serialization-lib-browser. That is how I built this <a href="https://native-asset.com/" rel="nofollow noreferrer">minting app</a></p>
 1900: <p>Another option:</p>
<p>Transaction can be built in Java backend and then sent to Nami for signing.</p>
<p>Here's a sample code for Multi-sig token mint where</p>
<p>(Not exactly same but similar approach can be used for your scenario)</p>
<ol>
<li>Mint Transaction is built in Java backend</li>
<li>Sign by Nami extension in the browser</li>
<li>Send the witness back to Java backend</li>
<li>Assemble transaction again with other witnesses in Java backend and submit the final transaction</li>
</ol>
<p><a href="https://github.com/bloxbean/cardano-client-examples/blob/c3aec693977aff1e82b3c24ac5402f4ecc8748fd/src/main/java/com/bloxbean/cardano/client/examples/MultiSigMint.java#L154" rel="nofollow noreferrer">MultiSigTokenMint With Java + Nami</a></p>
