arkiv-sdk
    Preparing search index...

    Type Alias ArkivExtend

    Specification for extending the lifetime of existing entities.

    Extension allows entity owners to prolong the lifetime of their entities without modifying the data or annotations. This is useful for maintaining important data that should not expire.

    Using the new duration API (recommended):

    const extendSpec: ArkivExtend = {
    entityKey: "0x1234567890abcdef12345678",
    duration: ExpirationTime.fromHours(48) // Extend by 48 hours
    };

    Using legacy numberOfBlocks (deprecated):

    const extendSpec: ArkivExtend = {
    entityKey: "0x1234567890abcdef12345678",
    numberOfBlocks: 500 // Deprecated: use duration instead
    };
    type ArkivExtend = {
        duration?: number | ExpirationTime;
        entityKey: Hex;
        numberOfBlocks?: number;
    }
    Index

    Properties

    duration?: number | ExpirationTime

    Duration to extend the entity's lifetime in seconds, or ExpirationTime object (preferred over numberOfBlocks). When using number, it represents duration in seconds (not blocks).

    entityKey: Hex

    The hexadecimal key of the entity to extend

    numberOfBlocks?: number

    Use duration instead. numberOfBlocks will be removed in a future version. Number of additional blocks to add to the entity's current expiration