Skip to content

useERC20Rune

Retrieve the ERC20 address associated with a Rune.

Import

ts
import { useERC20Rune } from "@midl-xyz/midl-js-executor-react";

Example

ts
const { erc20Address } = useERC20Rune("1:1");

console.log(erc20Address);

Parameters

NameTypeDescription
runeIdstringThe rune ID to get the ERC20 address of
optionsobjectThe options for the request
options.queryUseReadContractParametersThe parameters for the read contract request