Skip to main content

ObjectOwner

@iota/iota-sdk


@iota/iota-sdk / client / ObjectOwner

Type Alias: ObjectOwner

ObjectOwner = { AddressOwner: string; } | { ObjectOwner: string; } | { Shared: { initial_shared_version: string; }; } | "Immutable"

Defined in: sdk/typescript/src/client/types/generated.ts:1349

Enum of different types of ownership for an object.

BCS

The BCS serialized form for this type is defined by the following ABNF:


owner-address = %x00 address owner-object = %x01 object-id owner-shared = %x02 u64 owner-immutable = %x03 ```

Union Members​

Type Literal​

{ AddressOwner: string; }

Object is exclusively owned by a single address, and is mutable.


Type Literal​

{ ObjectOwner: string; }

Object is exclusively owned by a single object, and is mutable. The object ID is converted to Address as Address is universal.


Type Literal​

{ Shared: { initial_shared_version: string; }; }

Object is shared, can be used by any address, and is mutable.


"Immutable"