Argument
Namespace: IotaSdk
An argument to a programmable transaction command
BCS
The BCS serialized form of this type is specified in
bcs-schema.abnf.
public class Argument : IArgument, System.IEquatable`1[[IotaSdk.Argument, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable
Inheritance Object → Argument
Implements IArgument, IEquatable<Argument>, IDisposable
Attributes NullableContextAttribute, NullableAttribute
Constructors
Argument(UInt64)
public Argument(ulong pointer)
Parameters
pointer UInt64
Methods
Destroy()
public void Destroy()
Dispose()
public void Dispose()
NestedResult(UInt16)
Get the nested result for this result at the given index. Returns None if this is not a Result.
public Argument? NestedResult(ushort ix)
Parameters
ix UInt16
Returns
ToBcs()
Convert this type to BCS encoded bytes.
public Byte[] ToBcs()
Returns
Exceptions
ToDisplayString()
Render this type as human-readable text.
Some types also print this through the binding's native string conversion; this method is the spelling every object type has.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
public string ToDisplayString()
Returns
ToJson()
Convert this type to a JSON encoded string.
public string ToJson()
Returns
Exceptions
Equals(Argument)
public bool Equals(Argument? other)
Parameters
other Argument?
Returns
Equals(Object)
public override bool Equals(object? obj)
Parameters
obj Object?
Returns
FromBcs(Byte[])
Create this type from BCS encoded bytes.
public static Argument FromBcs(Byte[] bcs)
Parameters
bcs Byte[]
Returns
Exceptions
FromJson(String)
Create this type from a JSON encoded string.
public static Argument FromJson(string json)
Parameters
json String
Returns
Exceptions
NewGas()
The gas coin. The gas coin can only be used by-ref, except for with TransferObjects, which
can use it by-value.
public static Argument NewGas()
Returns
NewInput(UInt16)
One of the input objects or primitive values (from ProgrammableTransaction inputs)
public static Argument NewInput(ushort input)
Parameters
input UInt16
Returns
NewNestedResult(UInt16, UInt16)
Like a Result but it accesses a nested result. Currently, the only usage of this is to
access a value from a Move call with multiple return values.
public static Argument NewNestedResult(ushort commandIndex, ushort subresultIndex)
Parameters
commandIndex UInt16
subresultIndex UInt16
Returns
NewResult(UInt16)
The result of another command (from ProgrammableTransaction commands)
public static Argument NewResult(ushort result)
Parameters
result UInt16