Skip to content

Latest commit

 

History

History
25 lines (13 loc) · 574 Bytes

getObjectByKey.md

File metadata and controls

25 lines (13 loc) · 574 Bytes

@gala-chain/chaincodeAPI


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

Source

chaincode/src/utils/state.ts:129