computeRelayerFee()
SIP Protocol API Reference v0.12.0
SIP Protocol API Reference / computeRelayerFee
Function: computeRelayerFee()
Section titled “Function: computeRelayerFee()”computeRelayerFee(
amount,config):bigint
Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:17192
Compute the relayer fee for a claim.
Parameters
Section titled “Parameters”amount
Section titled “amount”bigint
Gross amount available in the stealth token account (base units)
config
Section titled “config”Fee model
Returns
Section titled “Returns”bigint
Fee in the token’s base units (always >= flatFloor)
Throws
Section titled “Throws”If bps is negative or non-integer, or if amount is negative, or if flatFloor is negative