<p>This answer is a little sidetracked, But may be useful for you and others :)</p>
<p>If you are open to integrating your application with Typhon Wallet then its DApp connector is very simple and developer-friendly which does not require you to build a transaction in your application.</p>
<p>Below is a simple payment transaction using Typhon Dapp Connector,</p>
<pre><code>const paymentTransactionResponse = await window.cardano.typhon.paymentTransaction({
  outputs: [
    {
      address:
        &quot;addr_test1qz7jw975stagnvs00wsjny6y6gpazn86yvwcm2vy02j3up7mt68vuzvz4nzgs00x0shrgywvy674v6r2zcs8fxvvq27qfjq8np&quot;,
      amount: &quot;6000000&quot;,
    },
  ],
});
</code></pre>
<p>that's all needed in your application to build a transaction, You can also add tokens, metadata, datum, and minting with this.</p>
<p>More examples, <a href="https://docs.typhonwallet.io/examples/paymentTransaction.html#sending-ada" rel="nofollow noreferrer">https://docs.typhonwallet.io/examples/paymentTransaction.html#sending-ada</a></p>
<blockquote>
<p>NOTE: Typhon Dapp Connector does not follow CIP-30</p>
</blockquote>

CC BY-SA 4.0
2022-03-16T08:01:16.397Z
Thank you so much for the answer. I will give it a look. But I am trying to use the more general CIP0030 convention in order to build wallet-agnostic dapps. Nami also has simple methods like the one above. These are great solutions for quick fix, however, being wallet-agnostic I guess is a great feature and also assure longevity of the dapp
Fourzin
CC BY-SA 4.0
2022-03-16T15:21:44.333Z
I completely agree with your point on dapp needs to be wallet agnostic, but this is not a solution for a quick fix instead this approach is more developer-friendly. Dapp developers job is not to read cardano specs, do UTXO selection, fee calculation and what more, Instead developer should be more focused on building DApp application logic.
Mehul Prajapati
CC BY-SA 4.0
2022-03-16T07:05:12.413Z
2022-03-16T07:05:12.413Z
Mehul Prajapati
<p>There are examples here:</p>
<p><a href="https://developers.cardano.org/docs/get-started/cardano-serialization-lib/generating-transactions" rel="nofollow noreferrer">https://developers.cardano.org/docs/get-started/cardano-serialization-lib/generating-transactions</a></p>
<p><a href="https://developers.cardano.org/docs/get-started/cardano-serialization-lib/create-react-app" rel="nofollow noreferrer">https://developers.cardano.org/docs/get-started/cardano-serialization-lib/create-react-app</a></p>
<p>And I have created a repo with a working example of how to connect to web-wallets, build and submit transactions using the serialization lib:</p>
<p><a href="https://github.com/dynamicstrategies/cardano-wallet-connector" rel="nofollow noreferrer">https://github.com/dynamicstrategies/cardano-wallet-connector</a></p>
<p>All the best!</p>

CC BY-SA 4.0
2022-08-16T17:46:49.220Z
2022-08-16T17:46:49.220Z
D S
<p>I am trying to find an example of building a simple Tx of ADA in, ADA out type of transaction using sterilization-lib to get cbor and pass it to Wallet.signTx(cbor). developer.cardano.org has a great cli documentation and walkthrough, if only the same could be available for web-based application.</p>

<wallet><cardano-serialization-lib>
Is there good examples for building a transaction using serialization-lib?
# Is there good examples for building a transaction using serialization-lib?

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

I am trying to find an example of building a simple Tx of ADA in, ADA out type of transaction using sterilization-lib to get cbor and pass it to Wallet.signTx(cbor). developer.cardano.org has a great cli documentation and walkthrough, if only the same could be available for web-based application.

**Tags:** wallet, cardano-serialization-lib

---

## 2 answers

### Answer by username_1 on 2022-03-16. Score: 1

This answer is a little sidetracked, But may be useful for you and others :)
If you are open to integrating your application with Typhon Wallet then its DApp connector is very simple and developer-friendly which does not require you to build a transaction in your application.
Below is a simple payment transaction using Typhon Dapp Connector,
const paymentTransactionResponse = await window.cardano.typhon.paymentTransaction({
  outputs: [
    {
      address:
        "addr_test1qz7jw975stagnvs00wsjny6y6gpazn86yvwcm2vy02j3up7mt68vuzvz4nzgs00x0shrgywvy674v6r2zcs8fxvvq27qfjq8np",
      amount: "6000000",
    },
  ],
});

that's all needed in your application to build a transaction, You can also add tokens, metadata, datum, and minting with this.
More examples, https://docs.typhonwallet.io/examples/paymentTransaction.html#sending-ada

NOTE: Typhon Dapp Connector does not follow CIP-30

> **Comments:**
> **username_0**: Thank you so much for the answer. I will give it a look. But I am trying to use the more general CIP0030 convention in order to build wallet-agnostic dapps. Nami also has simple methods like the one above. These are great solutions for quick fix, however, being wallet-agnostic I guess is a great feature and also assure longevity of the dapp  
> **username_1**: I completely agree with your point on dapp needs to be wallet agnostic, but this is not a solution for a quick fix instead this approach is more developer-friendly. Dapp developers job is not to read cardano specs, do UTXO selection, fee calculation and what more, Instead developer should be more focused on building DApp application logic.  

---

### Answer by username_2 on 2022-08-16. Score: 0

There are examples here:

<https://developers.cardano.org/docs/get-started/cardano-serialization-lib/generating-transactions>

<https://developers.cardano.org/docs/get-started/cardano-serialization-lib/create-react-app>

And I have created a repo with a working example of how to connect to web-wallets, build and submit transactions using the serialization lib:

<https://github.com/dynamicstrategies/cardano-wallet-connector>

All the best!


---

