Function.getwithdrawfeeininputtoken
@zetachain/toolkit / getWithdrawFeeInInputToken
Function: getWithdrawFeeInInputToken()
getWithdrawFeeInInputToken(
this
,inputZRC20
,outputZRC20
):Promise
<object
>
Calculates the withdraw fee in the input ZRC20 token for a given output ZRC20 token.
Parameters
• this: ZetaChainClient
• inputZRC20: string
The input ZRC20 token address.
• outputZRC20: string
The output ZRC20 token address.
Returns
Promise
<object
>
- An object containing the withdraw fee amount and its decimals.
amount
amount:
any
decimals
decimals:
any
=inputDecimals
Defined in
Continue Learning
Continue with the next part or try a related tutorial
How has your developer experience been?
Share your feedback and help improve it for everyone.