@gala-chain/chaincode ∙ API
API > getObjectByKey
Function: getObjectByKey()
getObjectByKey\<
T
>(ctx
,constructor
,objectId
):Promise
\<T
>
Type parameters
▪ T extends ChainObject
Parameters
▪ ctx: GalaChainContext
▪ constructor: ClassConstructor
\<Inferred
\<T
, ChainObject
>>
▪ objectId: string