Skip to main content

createLineageTransition

HardKAS SDK


HardKAS SDK / artifacts/src / createLineageTransition

Function: createLineageTransition()

createLineageTransition(parent, _childType): object

Defined in: packages/artifacts/src/lineage.ts:198

Creates a valid lineage transition object for a new child artifact based on its parent. This should be attached to the child artifact before calculating its final hash.

Parameters​

parent​

any

_childType​

string

Returns​

object

artifactId​

artifactId: string

lineageId​

lineageId: string

parentArtifactId​

parentArtifactId: string

rootArtifactId​

rootArtifactId: string

sequence​

sequence: number