suiboxer.xyz

What happens if two sui objects share the same owner?

In Sui, two objects can share the same owner without any conflict. Ownership is simply an address field on each object, and the system places no restriction on how many objects an address may own. The practical consequences depend on whether the owner is an account address, a shared object, or another object.

How ownership works in sui

Every Sui object has an owner field. The possible owner types are:

When two objects have the same address owner, nothing special happens at the protocol level. The owner can transfer, freeze, or delete each object independently. The objects do not become linked, and one object's state change does not affect the other unless your Move code explicitly connects them.

Reading Objects Owned by the Same Address

To see all objects owned by a given address, use the Sui client:

sui client objects <address>

This returns a list of objects, including their type, object ID, version, and digest. The response does not group or sort objects by any relationship - it is a flat list of everything the address controls.

If you need objects of a specific type, filter the query:

sui client objects --type <type>

For programmatic access, use the suix_getOwnedObjects RPC endpoint. You can paginate results and filter by type or cursor position.

Transactions Involving Two Objects with the Same Owner

When a transaction uses two objects owned by the same address, the Sui execution model handles them the same way it handles objects owned by different addresses. Each object is fetched independently, checked for availability, and locked during execution.

Key points:

Practical implications for developers

Ownership does not imply composition

Two objects with the same owner are not automatically linked. If you want a parent-child relationship, use Sui dynamic fields or object-owned objects. For example, a Character object can own an Inventory object through object ownership, not through sharing the same address owner.

Access control is per-object

If your Move module needs to check that a caller controls two specific objects, you must write explicit checks. The system does not infer any relationship from the owner field alone.

// You must check ownership explicitly
assert!(object1.owner == tx_context::sender(ctx), 0);
assert!(object2.owner == tx_context::sender(ctx), 1);

Transfer Behavior

When you transfer an object to a new owner, the other objects owned by the same address are unaffected. The transferred object's owner field changes to the new address; the remaining objects keep their original owner.

Edge Cases

Shared objects and address owners

If one object is shared (owner = shared) and another object is address-owned by the same address that created the shared object, the two objects behave very differently:

The owner address field on the shared object is irrelevant for access control after the object becomes shared.

Immutable Objects

If an address owns an immutable object, the owner cannot modify it. If the same address also owns a mutable object, the two objects operate under completely different rules. The immutable object is read-only; the mutable object can be updated.

Object-Owned Objects

If object A owns object B (object ownership), and object A is owned by an address, then B is indirectly owned by that address. But B's owner field shows object A, not the address. The address cannot directly interact with B without first accessing A.

Common Misconceptions

Summary

Two Sui objects sharing the same owner is normal and has no special protocol behavior. Each object remains independent, with its own version, permissions, and lifecycle. If you need objects to be linked, use Sui's dynamic fields or object ownership rather than relying on a common owner address. The owner field is an access control mechanism, not a grouping or composition tool.

Not financial advice. suiboxer.xyz publishes market data and general information about digital assets. Crypto assets are volatile and you can lose everything you put in. Nothing here is a recommendation to buy, sell or hold, and we make no price predictions.

Prices are sourced from third parties and may be delayed or wrong. Verify anything you intend to act on against a primary source.

Back to sui & aptos