Skip to content

@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:127