useDeployedContractInfo
Use this hook to fetch details about a deployed smart contract, including the ABI and address.
const { data: deployedContractData } = useDeployedContractInfo(contractName);
This example retrieves the details of the deployed contract with the specified name and stores the details in the deployedContractData object.
Parametersโ
| Parameter | Type | Description |
|---|---|---|
| contractName | string | Name of the contract. |
Return Valueโ
data: Object containingaddressandabiof contract.