Skip to content
LogoLogo

getLifecycleState

The asset's lifecycle state, as recorded on its NFT.

Usage

const  = await .('did:ope:1234abcd...')
 
const  = () 
 
if ( === .) {
  // orderable
}

Returns

  • Type: number | undefined

Compare against LifecycleStates:

ValueState
0ACTIVE
1END_OF_LIFE
2DEPRECATED
3REVOKED_BY_PUBLISHER
4ORDERING_DISABLED_TEMPORARILY
5ASSET_UNLISTED

Change it with setAssetLifecycleState.

Parameters

ddo

  • Type: unknown