Build
Frontend Tutorials
toolkit
Function.getzrc20fromerc20

Function.getzrc20fromerc20

@zetachain/toolkit / getZRC20FromERC20

getZRC20FromERC20(this, erc20): Promise<any>

Retrieves the ZRC20 contract address for a given ERC20 token.

this: ZetaChainClient

erc20: string

The ERC20 token address.

Promise<any>

  • The ZRC20 contract address.

Will throw an error if the ERC-20 token is not supported.

getQuote.ts:15 (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.