@armada/sdk / index / feeForOperation
Function: feeForOperation()
feeForOperation(
quote,operation):SpendFee
Defined in: src/tx/spend-fee.ts:32
Read the fee for operation from a relayer quote (GET /fees). Throws InvalidRequestError when the quote has no tier for it or the tier isn't a non-negative integer string — never falls back to another tier or to zero, which would bind a fee the relayer rejects only after the user has proved.
Parameters
quote
Pick<FeeQuote, "schedule" | "broadcasterShieldedAddress">