Skip to main content

ThirdwebSDK.getContract() method

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Get an instance of a Custom ThirdwebContract

Signature:

getContract(address: string): Promise<SmartContract<ethers.BaseContract>>;

Parameters

ParameterTypeDescription
addressstringthe address of the deployed contract

Returns:

Promise<SmartContract<ethers.BaseContract>>

the contract