Skip to main content

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

Address?

AsAddress()

Convert this owner into an address owner if it is one, or panic otherwise

Address AsAddress()

Returns

Address

AsObject()

Convert this owner into an object owner if it is one, or panic otherwise

ObjectId AsObject()

Returns

ObjectId

AsOptAddress()

Convert this owner into an address owner if it is one, or return None otherwise

Address? AsOptAddress()

Returns

Address?

AsOptObject()

Convert this owner into an object owner if it is one, or return None otherwise

ObjectId? AsOptObject()

Returns

ObjectId?

AsOptShared()

Convert this owner into a shared owner if it is one, or return None otherwise

Version? AsOptShared()

Returns

Version?

AsShared()

Convert this owner into a shared owner if it is one, or panic otherwise

Version AsShared()

Returns

Version

IsAddress()

Check if this is an address owner

bool IsAddress()

Returns

Boolean

IsImmutable()

Check if this is an immutable owner

bool IsImmutable()

Returns

Boolean

IsObject()

Check if this is an object owner

bool IsObject()

Returns

Boolean

IsShared()

Check if this is a shared owner

bool IsShared()

Returns

Boolean