isContractDeployed

Checks if a contract is deployed by verifying its bytecode.

Example

import { getContract } from "thirdweb/contract";
import { isContractDeployed } from "thirdweb/contract/utils";
const contract = getContract({ ... });
const isDeployed = await isContractDeployed(contract);
console.log(isDeployed);

Parameters

Returns

A promise that resolves to a boolean indicating whether the contract is deployed or not.