getDeployedInfraContract

Retrieves a deployed infrastructure contract instance for the specified contract ID

function getDeployedInfraContract(options: {
chain: Readonly<ChainOptions & { rpc: string }>;
client: ThirdwebClient;
constructorParams?: Record<string, unknown>;
contractId: InfraContractId;
publisher?: string;
version?: string;
}): Promise<ThirdwebContract | null>;

Parameters

Configuration options for locating the infrastructure contract

Type

let options: {
chain: Readonly<ChainOptions & { rpc: string }>;
client: ThirdwebClient;
constructorParams?: Record<string, unknown>;
contractId: InfraContractId;
publisher?: string;
version?: string;
};

Returns

let returnType: Readonly<ContractOptions<abi>>;

Promise that resolves to the contract instance if deployed, null otherwise