ThirdwebSDK.resolveContractType() method
Signature:
resolveContractType(contractAddress: string): Promise<Exclude<ContractType, "custom">>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| contractAddress | string | the address of the contract to attempt to resolve the contract type for |
Returns:
Promise<Exclude<ContractType, "custom">>
the ContractType for the given contract address
Exceptions
if the contract type cannot be determined (is not a valid thirdweb contract)