Skip to content

@gala-chain/chaincodeAPI


API > galaFeeGate

Function: galaFeeGate()

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

A standardized, pre-defined Fee Gate designed to work with FeeUsageThreshold, FeeCodeDefinition, and FeeCodeDefintion.FeeAccelerationRateType schemes to increase fees for heavy, abusive, or denial-of-service level usage by individual identities. Fees will increase by the defined acceleration rate as users hit increasingly high usage thresholds defined by authoritative channel operators.

Parameters

ctx: GalaChainContext

data: GalaFeeGateParams

Returns

Source

chaincode/src/fees/galaFeeGate.ts:48