@gala-chain/chaincode • Readme | API
@gala-chain/chaincode / 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
Returns
Promise\<T>