Build
Frontend Tutorials
toolkit
Function.getrefundfee

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)

Continue Learning

Continue with the next part or try a related tutorial

Feedback
How has your developer experience been?
Share your feedback and help improve it for everyone.