@zetachain/toolkit / getZRC20FromERC20
Function: getZRC20FromERC20()
getZRC20FromERC20(
this
,erc20
):Promise
<any
>
Retrieves the ZRC20 contract address for a given ERC20 token.
Parameters
• this: ZetaChainClient
• erc20: string
The ERC20 token address.
Returns
Promise
<any
>
- The ZRC20 contract address.
Throws
Will throw an error if the ERC-20 token is not supported.