cardanosharp-wallet icon indicating copy to clipboard operation
cardanosharp-wallet copied to clipboard

How to differentiate Testenet from Mainnet?

Open Spoiledpay opened this issue 3 years ago • 3 comments

When using the C# SDK. They can help where we can insert in the code the creation of addresses for Testenet and Mainnet. And any transaction or functionality. From what I've seen it only works on Node Mainnet. Correct?

thanks

Spoiledpay avatar Jul 04 '22 14:07 Spoiledpay

@Spoiledpay Please refer to the README, https://github.com/CardanoSharp/cardanosharp-wallet#create-addresses

you will see we have a NetworkType

nothingalike avatar Jul 04 '22 14:07 nothingalike

Hello! Thanks for the help and sorry for my lack of attention. And about get the balance of an address. Account or address information. Do we have any examples?

Spoiledpay avatar Jul 05 '22 17:07 Spoiledpay

Ok so this is where we get into online and offline functionality. CardanoSharp.Wallet is only offline. You can use Blockfrost .NET SDK or the CardanoSharp Koios SDK for online needs (getting utxos, balances, transaction submissions, pool info, network info, etc)

https://github.com/blockfrost/blockfrost-dotnet https://github.com/cardano-community/cardanosharp-koios

nothingalike avatar Jul 05 '22 19:07 nothingalike