T_Iota_Lib_CSharp_Api_Utils_InputValidator - iotaledger-archive/iota.lib.csharp GitHub Wiki
This class provides methods to validate the parameters of different iota API methods
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)
C#
public static class InputValidator
The InputValidator type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() |
CheckAddress | Checks whether the specified address is an address and throws and exception if the address is invalid |
![]() ![]() |
CheckIfArrayOfTrytes | Checks if the specified array is an array of trytes. If not an exception is thrown. |
![]() ![]() |
CheckIfValidSeed | Checks if the seed is valid. If not, an exception is thrown. |
![]() ![]() |
CheckTransferArray | Checks the specified specified transfers are valid. If not, an exception is thrown. |
![]() ![]() |
IsAddress | Determines whether the specified string is an adrdress. |
![]() ![]() |
IsArrayOfHashes | Determines whether the specified array contains only valid hashes |
![]() ![]() |
IsArrayOfTrytes | Determines whether the specified string array contains only trytes |
![]() ![]() |
IsNinesTrytes | Determines whether the specified string consist only of '9'. |
![]() ![]() |
IsTransfersCollectionValid | Determines whether the specified transfers are valid |
![]() ![]() |
IsTrytes | Determines whether the specified string contains only characters from the trytes alphabet (see TryteAlphabet) |
![]() ![]() |
IsValidTransfer | Determines whether the specified transfer is valid. |
![]() ![]() |
IsValue | Determines whether the specified string represents an integer value. |
![]() ![]() |
PadSeedIfNecessary | Pads the seed if necessary. |