Skip to main content

TransferPolicy

Namespace: IotaSdk

public class TransferPolicy : ITransferPolicy, System.IDisposable

Inheritance Object → TransferPolicy
Implements ITransferPolicy, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

TransferPolicy(UInt64)​

public TransferPolicy(ulong pointer)

Parameters​

pointer UInt64

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

Balance()​

IOTA balance collected by the policy, in nanos.

public ulong Balance()

Returns​

UInt64

Id()​

The object's ID.

public ObjectId Id()

Returns​

ObjectId

Rules()​

Fully-qualified type names of the rules attached to this policy.

public String[] Rules()

Returns​

String[]

TryFromBcs(Byte[])​

Decode from BCS bytes, without validating the on-chain type tag.

public static TransferPolicy TryFromBcs(Byte[] bytes)

Parameters​

bytes Byte[]

Returns​

TransferPolicy

Exceptions​

SdkFfiException

TryFromObjectWithType(Object, TypeTag)​

Decode from an on-chain object, validating its Move type tag, including that its type parameter equals type_param.

public static TransferPolicy TryFromObjectWithType(Object object, TypeTag typeParam)

Parameters​

object Object

typeParam TypeTag

Returns​

TransferPolicy

Exceptions​

SdkFfiException