Build
Frontend Tutorials
toolkit
Function.getwithdrawfeeininputtoken

@zetachain/toolkit / getWithdrawFeeInInputToken

getWithdrawFeeInInputToken(this, inputZRC20, outputZRC20): Promise<object>

Calculates the withdraw fee in the input ZRC20 token for a given output ZRC20 token.

this: ZetaChainClient

inputZRC20: string

The input ZRC20 token address.

outputZRC20: string

The output ZRC20 token address.

Promise<object>

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

amount

amount: any

decimals

decimals: any = inputDecimals

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