Build
Frontend Tutorials
toolkit
Function.getrefundfee

@zetachain/toolkit / getRefundFee

getRefundFee(this, inputZRC20): Promise<object>

Calculates the refund fee in the input ZRC20 token.

this: ZetaChainClient

inputZRC20: string

The input ZRC20 token address.

Promise<object>

  • An object containing the refund fee amount and its decimals.

amount

amount: BigNumber = withdrawFee

decimals

decimals: number = inputDecimals

getQuote.ts:106 (opens in a new tab)