useCompilerMetadata

Hook for retrieving information such as the ABI, license, and metadata of a smart contract using it's contract address.

Example

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

Parameters

Returns

Query result containing the compiler metadata of the deployed contract in the data property