@gala-chain/chaincode ∙ API
API > settleFeeCreditReceipts
Function: settleFeeCreditReceipts()
settleFeeCreditReceipts(
ctx
,data
):Promise
\<SettleFeeCreditReceiptsResponse
>
Intended for use with cross-channel fees (i.e. secondary channels other than the asset channel).
Given an array of FeeBalanceCreditReceipt
index keys,
query the entries and mark the FeeBalanceCreditReceipt
entries as Settled
.
The intended flow cross-channel is that a secondary channel operator
first executes settleFeeBalances
to zero out unspent fee credit authorizations
as needed.
Then, after verifying that $GALA has been credited back on the
asset channel, the FeeBalanceCreditReceipt
on the secondary channel can
be marked as Settled
, indicating the credit has been issued and finalized.
Parameters
▪ ctx: GalaChainContext
▪ data: SettleFeeCreditReceiptsParams