@gala-chain/chaincode ∙ API
API > objectExists
Function: objectExists()
objectExists(
ctx,id):Promise\<boolean>
Parameters
▪ ctx: GalaChainContext
▪ id: string
Returns
Promise<boolean>
Description
objectExists returns true when asset with given ID exists in world state. Only use this function to check for existence. The stored data will not be deserialized or returned.