ExtendEntityParameters
ExtendEntityParameters =
object
Defined in: src/actions/wallet/extendEntity.ts:26
Parameters for extending an entity’s life.
An extension sets a new expiry; it does not add to the existing one. It is resolved exactly
as a create’s is — a duration counts from now, not from the entity’s current expiry — so
ExpirationTime.fromDays(30) means “alive for thirty more days from now” whatever the entity’s
remaining life happened to be.
The engine rejects an extension that would not move the expiry later, so extending an entity by less than it already has left is an error rather than a silent shortening.
Example
Section titled “Example”await client.extendEntity({ entityKey, expires: ExpirationTime.fromDays(30) })await client.extendEntity({ entityKey, expires: ExpirationTime.atBlock(1_200_000n) })Properties
Section titled “Properties”entityKey
Section titled “entityKey”entityKey:
Hex
Defined in: src/actions/wallet/extendEntity.ts:27
expires
Section titled “expires”expires:
Expiry
Defined in: src/actions/wallet/extendEntity.ts:29
The entity’s new lifetime, built with ExpirationTime.