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:
| Value | State |
|---|---|
0 | ACTIVE |
1 | END_OF_LIFE |
2 | DEPRECATED |
3 | REVOKED_BY_PUBLISHER |
4 | ORDERING_DISABLED_TEMPORARILY |
5 | ASSET_UNLISTED |
Change it with
setAssetLifecycleState.
Parameters
ddo
- Type:
unknown