Skip to content

computeRelayerFee()

SIP Protocol API Reference v0.15.1


SIP Protocol API Reference / computeRelayerFee

computeRelayerFee(amount, config): bigint

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:17200

Compute the relayer fee for a claim.

bigint

Gross amount available in the stealth token account (base units)

RelayerFeeConfig

Fee model

bigint

Fee in the token’s base units (always >= flatFloor)

If bps is negative or non-integer, or if amount is negative, or if flatFloor is negative