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 .

Example

import { useContractType } from "@thirdweb-dev/react";
function App() {
const { data, isLoading, error } = useContractType(contractAddress);
}

Parameters

Returns

Query result containing the type of the contract in the data property