ObjectKey

constructor(address: Any, version: Optional<Any?> = Optional.Absent, rootVersion: Optional<Any?> = Optional.Absent, atCheckpoint: Optional<Any?> = Optional.Absent)

Parameters

address

The object's ID.

version

If specified, tries to fetch the object at this exact version.

rootVersion

If specified, tries to fetch the latest version of the object at or before this version. Nested dynamic field accesses will also be subject to this bound.

This can be used to fetch a child or ancestor object bounded by its root object's version. For any wrapped or child (object-owned) object, its root object can be defined recursively as:

  • The root object of the object it is wrapped in, if it is wrapped.

  • The root object of its owner, if it is owned by another object.

  • The object itself, if it is not object-owned or wrapped.

atCheckpoint

If specified, tries to fetch the latest version as of this checkpoint. Fails if the checkpoint is later than the RPC's latest checkpoint.