<p>The documentation is very limiting, but if you're confident with JavaScript or TypeScript then there are a few very good resources out there. I've personally learnt by just reading the <a href="https://github.com/Berry-Pool/nami-wallet" rel="nofollow noreferrer">Nami wallet source code.</a> There are good examples on how to <a href="https://github.com/Berry-Pool/nami-wallet/blob/58c924cfd98fd568ed2ff133d95fde16771e81d8/src/api/extension/wallet.js#L41" rel="nofollow noreferrer">build transactions</a>, and <a href="https://github.com/Berry-Pool/nami-wallet/blob/58c924cfd98fd568ed2ff133d95fde16771e81d8/src/api/extension/index.js#L724" rel="nofollow noreferrer">sign transactions</a>. The <a href="https://github.com/Emurgo/cardano-serialization-lib/blob/master/rust/pkg/cardano_serialization_lib.js.flow" rel="nofollow noreferrer">API flow document</a> is basically my bible these days too, there are some good comments and the type descriptions make it pretty easy to understand.</p>
<p>Another decent example can be found here for <a href="https://github.com/cheffNFT/namiwallettemplate/blob/510bc623a8a218f046c01760aefa5e510d59d97e/src/js/wallet/buy.mjs#L67" rel="nofollow noreferrer">building transactions using the Nami API</a>, but the same applies for if you're using your own created keys or the keys created by Nami wallet itself. When it comes to minting assets though it's not as straight forward, since minting with the cardano-serialization-lib isn't available in stable yet, you need a 10.0 beta version to use it. We're in the process of open-sourcing <a href="https://github.com/lovalabs/cardano-minting-lib" rel="nofollow noreferrer">our SDK wrapper around CSL</a> that makes wallet creation, minting tokens, and sending payments much easier but it's still being tested. Hopefully will be released in the next week or two!</p>

CC BY-SA 4.0
2021-11-18T17:11:43.723Z
thanks Thomas. Will dive into the resources you have pointed out.
LKBH Pools
CC BY-SA 4.0
2021-11-18T13:48:33.447Z
2021-11-18T14:07:21.823Z
2021-11-18T14:07:21.823Z
Thom
<p>There is some (a bit outdated) examples <a href="https://github.com/Emurgo/cardano-serialization-lib/tree/master/doc/getting-started" rel="nofollow noreferrer">here</a> as part of the repo, but It may help you to get started.</p>

CC BY-SA 4.0
2021-11-18T14:10:57.210Z
2021-11-18T14:10:57.210Z
pyropy
<p>I had the same question and so written a demo with the cardano-serialization-lib here: <a href="https://github.com/dynamicstrategies/cardano-wallet-connector" rel="nofollow noreferrer">https://github.com/dynamicstrategies/cardano-wallet-connector</a></p>
<p>The lib is very powerful and at this point it has replaced me he off chain plutus that i might have needed to write and replaced with reacJS + this lib</p>

CC BY-SA 4.0
2022-02-15T21:07:32.113Z
2022-02-15T21:07:32.113Z
D S
<p>Just realised the power of the cardano-serialization-lib-nodejs as it has all the functionality of cardano-cli, wallet etc. Even has some plutus based functions.</p>
<p>But as for any good things the bad side is the detailed documentation of all the hundreds of functions present in this library. Can anyone suggest how someone new to this library can get started with basic stuff like creating transaction, minting NFT etc. Just common stuff we achieve using cardano-cli now a days ?ca</p>

<wallet><cardano-cli><cardano-node>
cardano-serialization-lib-nodejs documentation
# cardano-serialization-lib-nodejs documentation

(Asked by: username_0 on 2021-11-17)

Just realised the power of the cardano-serialization-lib-nodejs as it has all the functionality of cardano-cli, wallet etc. Even has some plutus based functions.

But as for any good things the bad side is the detailed documentation of all the hundreds of functions present in this library. Can anyone suggest how someone new to this library can get started with basic stuff like creating transaction, minting NFT etc. Just common stuff we achieve using cardano-cli now a days ?ca

**Tags:** wallet, cardano-cli, cardano-node

---

## 3 answers

### Answer by username_1 on 2021-11-18. Score: 3

The documentation is very limiting, but if you're confident with JavaScript or TypeScript then there are a few very good resources out there. I've personally learnt by just reading the [Nami wallet source code.](https://github.com/Berry-Pool/nami-wallet) There are good examples on how to [build transactions](https://github.com/Berry-Pool/nami-wallet/blob/58c924cfd98fd568ed2ff133d95fde16771e81d8/src/api/extension/wallet.js#L41), and [sign transactions](https://github.com/Berry-Pool/nami-wallet/blob/58c924cfd98fd568ed2ff133d95fde16771e81d8/src/api/extension/index.js#L724). The [API flow document](https://github.com/Emurgo/cardano-serialization-lib/blob/master/rust/pkg/cardano_serialization_lib.js.flow) is basically my bible these days too, there are some good comments and the type descriptions make it pretty easy to understand.

Another decent example can be found here for [building transactions using the Nami API](https://github.com/cheffNFT/namiwallettemplate/blob/510bc623a8a218f046c01760aefa5e510d59d97e/src/js/wallet/buy.mjs#L67), but the same applies for if you're using your own created keys or the keys created by Nami wallet itself. When it comes to minting assets though it's not as straight forward, since minting with the cardano-serialization-lib isn't available in stable yet, you need a 10.0 beta version to use it. We're in the process of open-sourcing [our SDK wrapper around CSL](https://github.com/lovalabs/cardano-minting-lib) that makes wallet creation, minting tokens, and sending payments much easier but it's still being tested. Hopefully will be released in the next week or two!

> **Comments:**
> **username_0**: thanks Thomas. Will dive into the resources you have pointed out.  

---

### Answer by username_2 on 2021-11-18. Score: 1

There is some (a bit outdated) examples [here](https://github.com/Emurgo/cardano-serialization-lib/tree/master/doc/getting-started) as part of the repo, but It may help you to get started.


---

### Answer by username_3 on 2022-02-15. Score: 1

I had the same question and so written a demo with the cardano-serialization-lib here: <https://github.com/dynamicstrategies/cardano-wallet-connector>

The lib is very powerful and at this point it has replaced me he off chain plutus that i might have needed to write and replaced with reacJS + this lib


---

