Skip to main content

ThirdwebSDK.getContract() method

Get an instance of a Custom ThirdwebContract

Example

const contract = await sdk.getContract("{{contract_address}}");

Signature:

getContract(address: string): Promise<SmartContract>;

Parameters

ParameterTypeDescription
addressstringthe address of the deployed contract

Returns:

Promise<SmartContract>

the contract