Skip to content

v0.16: TonUtils

Choose a tag to compare

@justdmitry justdmitry released this 18 May 16:02
· 75 commits to master since this release
v0.16.0

Static TonUtils class with useful functions:

  • Address.IsValid (string address, out byte workchainId, out bool bounceable, out bool testnetOnly)
  • Address.SetBounceable (string address, bool bounceable)
  • Coins.FromNano (long nano)
  • Coins.ToNano (decimal ton)
  • Text.EncodeAsBase64 (string? source)
  • Text.TryDecodeBase64 (string? source, out string? result)
  • Adnl.Encode (ReadOnlySpan<byte> adnl)
  • Adnl.Decode (string adnl)

More helpers may be added in future releases.