Skip to content

@gala-chain/chaincodeAPI


API > fetchFeeCreditReceipts

Function: fetchFeeCreditReceipts()

fetchFeeCreditReceipts(ctx, data): Promise\<FetchFeeCreditReceiptsResponse>

Read FeeBalanceCreditReceipt entries from the ledger. FeeBalanceCreditReceipt entries represent a FeePendingBalance that was unused, settled, and designated to be credited back to the end user. Similar to a "Pending authorization" or "Pending hold" that drops off a credit card statement because it was never settled, these credit receipts designate a refund or credit-back of prior FeeAuthorizations where $GALA was burned on Gala's asset channel to cover cross channel fees, but the corresponding fee was less than expected or never settled. Refer to the FeeBalanceCreditReceipt class definition for further details. Supports pagionation - the optional bookmark and limit variables control the starting index key and size of the returned page, respectively.

Parameters

ctx: GalaChainContext

data: FetchFeeCreditReceiptsParams

Returns

Source

chaincode/src/fees/fetchFeeCreditReceipts.ts:69