Skip to content

Braga has been retired. The next public testnet is coming in September 2026. Read the announcement →

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.

await client.extendEntity({ entityKey, expires: ExpirationTime.fromDays(30) })
await client.extendEntity({ entityKey, expires: ExpirationTime.atBlock(1_200_000n) })

entityKey: Hex

Defined in: src/actions/wallet/extendEntity.ts:27


expires: Expiry

Defined in: src/actions/wallet/extendEntity.ts:29

The entity’s new lifetime, built with ExpirationTime.