@gala-chain/chaincode ∙ API
API > resetFeeThresholdUses
Function: resetFeeThresholdUses()
resetFeeThresholdUses(
ctx
,data
):Promise
\<FeeThresholdUses
[]>
Use in conjucntion with fetchFeeThresholdUses
to reset usage
thresholds recorded on-chain for indvidual identities.
Parameters
▪ ctx: GalaChainContext
▪ data: ResetFeeThresholdUsesParams
Returns
Remarks
Designed for flexibility - channel oeprators might page through
results retrieved wtih fetchFeeThresholdUses
, submit each
page's keys to this method, and effectively reset all
usage thresholds at a regular interval, say daily. Or specific
entry index keys can be provided to reset individual user
usage counts, as needed.