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: any = withdrawFee

decimals

decimals: any = inputDecimals

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