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
| Parameter | Type | Description |
|---|---|---|
| address | string | the address of the deployed contract |
| abi | ContractInterface | the ABI () of the contract to load |
Returns:
Promise<SmartContract>
the contract