Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

T_Iota_Lib_CSharp_Api_Utils_InputValidator

saniro edited this page Feb 16, 2017 · 1 revision

InputValidator Class

This class provides methods to validate the parameters of different iota API methods

Inheritance Hierarchy

System.Object
  Iota.Lib.CSharp.Api.Utils.InputValidator
Namespace: Iota.Lib.CSharp.Api.Utils
Assembly: IotaApi (in IotaApi.dll) Version: 0.9.0.24212 (1.0.0.0)

Syntax

C#

public static class InputValidator

The InputValidator type exposes the following members.

Methods

 

Name Description
Public methodStatic member CheckAddress Checks whether the specified address is an address and throws and exception if the address is invalid
Public methodStatic member CheckIfArrayOfTrytes Checks if the specified array is an array of trytes. If not an exception is thrown.
Public methodStatic member CheckIfValidSeed Checks if the seed is valid. If not, an exception is thrown.
Public methodStatic member CheckTransferArray Checks the specified specified transfers are valid. If not, an exception is thrown.
Public methodStatic member IsAddress Determines whether the specified string is an adrdress.
Public methodStatic member IsArrayOfHashes Determines whether the specified array contains only valid hashes
Public methodStatic member IsArrayOfTrytes Determines whether the specified string array contains only trytes
Public methodStatic member IsNinesTrytes Determines whether the specified string consist only of '9'.
Public methodStatic member IsTransfersCollectionValid Determines whether the specified transfers are valid
Public methodStatic member IsTrytes Determines whether the specified string contains only characters from the trytes alphabet (see TryteAlphabet)
Public methodStatic member IsValidTransfer Determines whether the specified transfer is valid.
Public methodStatic member IsValue Determines whether the specified string represents an integer value.
Public methodStatic member PadSeedIfNecessary Pads the seed if necessary.
  Back to Top

See Also

Reference

Iota.Lib.CSharp.Api.Utils Namespace

Clone this wiki locally