Skip to main content

ThirdwebSDK.getContract() method

Get an instance of a Custom ThirdwebContract

Example

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

Signature:

getContract(address: string, abi: ContractInterface): Promise<SmartContract>;

Parameters

ParameterTypeDescription
addressstringthe address of the deployed contract
abiContractInterfacethe ABI () of the contract to load

Returns:

Promise<SmartContract>

the contract