ObjectRead:
    | { details: SuiObjectData; status: "VersionFound" }
    | { details: string; status: "ObjectNotExists" }
    | { details: SuiObjectRef; status: "ObjectDeleted" }
    | { details: [string, string]; status: "VersionNotFound" }
    | {
        details: {
            asked_version: string;
            latest_version: string;
            object_id: string;
        };
        status: "VersionTooHigh";
    }

Type declaration

  • { details: SuiObjectData; status: "VersionFound" }

    The object exists and is found with this version

  • { details: string; status: "ObjectNotExists" }
  • { details: SuiObjectRef; status: "ObjectDeleted" }
  • { details: [string, string]; status: "VersionNotFound" }
  • {
        details: {
            asked_version: string;
            latest_version: string;
            object_id: string;
        };
        status: "VersionTooHigh";
    }