useContractType
Hook for determining the type of contract for a contract address.
This is useful if you want to determine if a contract is a prebuilt contract.
import { useContractType } from "@thirdweb-dev/react";
const { data, isLoading, error } = useContractType("{{contract_address}}");
Usage
Provide your contract address as the argument.
import { useContractType } from "@thirdweb-dev/react";
// Your smart contract address
const contractAddress = "{{contract_address}}";
function App() {
const { data, isLoading, error } = useContractType(contractAddress);
}