• Build

  • Run a Node

  • Use


  • Tools

  • About

  • Support

  • Community

  • Parameters
  • Returns
  • Throws
  • Defined in
Build
Frontend Tutorials
toolkit
Function.getzrc20fromerc20

@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.

Defined in

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

© 2024 Meta Protocol, Inc

  • Github
  • Whitepaper
  • Explorer
  • Bug Bounty
  • Terms
  • Privacy Policy