Skip to main content

ThirdwebSDK.resolveContractType() method

Signature:

resolveContractType(contractAddress: string): Promise<Exclude<ContractType, "custom">>;

Parameters

ParameterTypeDescription
contractAddressstringthe 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)