Skip to content

@gala-chain/chaincodeAPI


API > putRangedChainObject

Function: putRangedChainObject()

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

Parameters

ctx: GalaChainContext

data: RangedChainObject

Returns

Description

Validate the provided RangedChainObject, serialize it into an appropriate format for on-chain storage, and queue a putState call in the GalaChainStub. Will write the data to World State indexed by its simple key upon successful transaction completion.

Remarks

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

Source

chaincode/src/utils/state.ts:90