Skip to content

@gala-chain/chaincodeAPI


API > deleteChainObject

Function: deleteChainObject()

deleteChainObject(ctx, data): Promise\<void>

Parameters

ctx: GalaChainContext

data: ChainObject

Returns

Description

Queue a deleteState call in the GalaChainStub using the composite key of the provided ChainObject.

Remarks

See also GalaChainStub for details on caching and transactional writes supported by this method.

Source

chaincode/src/utils/state.ts:109