user1053: 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

user1045: There is some (a bit outdated) examples here as part of the repo, but It may help you to get started.

user6196: 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

user4043: 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. There are good examples on how to build transactions, and sign transactions. The API flow document 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, 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 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!

1053: <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>
 1045: <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>
 6196: <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>
 4043: <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>
