Skip to content

Latest commit

 

History

History
28 lines (15 loc) · 732 Bytes

getObjectsByKeys.md

File metadata and controls

28 lines (15 loc) · 732 Bytes

@gala-chain/chaincodeAPI


API > getObjectsByKeys

Function: getObjectsByKeys()

getObjectsByKeys<T>(ctx, constructor, objectIds): Promise<T[]>

Gets objects by keys and returns them in the same order as in projectIds parameter. If getting at least one object fails, throws an exception.

Type parameters

T extends ChainObject

Parameters

ctx: GalaChainContext

constructor: ClassConstructor<Inferred<T, ChainObject>>

objectIds: string[]

Source

chaincode/src/utils/state.ts:179