IOwner
Namespace: IotaSdk
Enum of different types of ownership for an object.
BCS
The BCS serialized form for this type is defined by the following ABNF:
owner = owner-address / owner-object / owner-shared / owner-immutable
owner-address = %d00 address
owner-object = %d01 object-id
owner-shared = %d02 u64
owner-immutable = %d03
public interface IOwner : System.IEquatable`1[[IotaSdk.Owner, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]
Implements IEquatable<Owner>
Attributes NullableContextAttribute
Methods
AddressOrObject()
Returns an Address if this object is owned by an address or
object, and None if it is shared or immutable.
Address? AddressOrObject()
Returns
AsAddress()
Convert this owner into an address owner if it is one, or panic otherwise
Address AsAddress()
Returns
AsObject()
Convert this owner into an object owner if it is one, or panic otherwise
ObjectId AsObject()
Returns
AsOptAddress()
Convert this owner into an address owner if it is one, or return None
otherwise
Address? AsOptAddress()
Returns
AsOptObject()
Convert this owner into an object owner if it is one, or return None
otherwise
ObjectId? AsOptObject()
Returns
AsOptShared()
Convert this owner into a shared owner if it is one, or return None
otherwise
Version? AsOptShared()
Returns
AsShared()
Convert this owner into a shared owner if it is one, or panic otherwise
Version AsShared()
Returns
IsAddress()
Check if this is an address owner
bool IsAddress()
Returns
IsImmutable()
Check if this is an immutable owner
bool IsImmutable()
Returns
IsObject()
Check if this is an object owner
bool IsObject()
Returns
IsShared()
Check if this is a shared owner
bool IsShared()