Coins
TonSdk.Core.Coins
Coins is special class to work with financial assets in Ton Blockchain.
To create Coins instance you can use class constructor and set different supported value types:
You can create Coins instance from nano coins value with CoinsOptions
in class Constructor or using Coins.FromNano()
method:
To convert value to nano coins value, you can use toNano()
method:
For now, TonSdk.Net supports arithmetical operations through coins methods, for example:
Remember, if you will try to do arithmetical operations using Coins with different decimal value, it will throw an Exception.
Last updated