Skip to main content

Type Alias: ObjectRead

type ObjectRead = 
| {
details: IotaObjectData;
status: "VersionFound";
}
| {
details: string;
status: "ObjectNotExists";
}
| {
details: IotaObjectRef;
status: "ObjectDeleted";
}
| {
details: [string, string];
status: "VersionNotFound";
}
| {
details: {
asked_version: string;
latest_version: string;
object_id: string;
};
status: "VersionTooHigh";
};

Type Declaration

{
details: IotaObjectData;
status: "VersionFound";
}
NameType
detailsIotaObjectData
status"VersionFound"

The object exists and is found with this version

{
details: string;
status: "ObjectNotExists";
}
NameType
detailsstring
status"ObjectNotExists"
{
details: IotaObjectRef;
status: "ObjectDeleted";
}
NameType
detailsIotaObjectRef
status"ObjectDeleted"
{
details: [string, string];
status: "VersionNotFound";
}
NameType
details[string, string]
status"VersionNotFound"
{
details: {
asked_version: string;
latest_version: string;
object_id: string;
};
status: "VersionTooHigh";
}
NameType
detailsobject
details.asked_versionstring
details.latest_versionstring
details.object_idstring
status"VersionTooHigh"