- useContract<TContractAddress>(contractAddress): UseContractResult<TContractAddress extends GeneratedContractAddress
? SmartContract<BaseContractForAddress<TContractAddress>>
: SmartContract>
-
Type Parameters
-
TContractAddress extends string
Returns UseContractResult<TContractAddress extends GeneratedContractAddress
? SmartContract<BaseContractForAddress<TContractAddress>>
: SmartContract>
- useContract(contractAddress): UseContractResult<SmartContract>
-
a response object that includes the contract once it is resolved
- useContract<TContractType>(contractAddress, _contractType): UseContractResult<TContractType extends PrebuiltContractType
? ContractForPrebuiltContractType<TContractType>
: SmartContract>
-
Type Parameters
-
TContractType extends "split" | "custom" | "token" | "vote" | "edition-drop" | "edition" | "marketplace" | "marketplace-v3" | "multiwrap" | "nft-collection" | "nft-drop" | "pack" | "signature-drop" | "token-drop"
Parameters
-
-
_contractType: TContractType
Returns UseContractResult<TContractType extends PrebuiltContractType
? ContractForPrebuiltContractType<TContractType>
: SmartContract>
a response object that includes the contract once it is resolved
- useContract(contractAddress, _abi): UseContractResult<SmartContract>
-
a response object that includes the contract once it is resolved
Use this resolve a contract address to a smart contract instance.