Custom contract dynamic class with feature detection
Example
import { ThirdwebSDK } from"@thirdweb-dev/sdk";
const sdk = newThirdwebSDK(provider);
const contract = await sdk.getContract("{{contract_address}}");
// call any function in your contractawait contract.call("myCustomFunction", [param1, param2]);
// if your contract follows an ERC standard, contract.ercXYZ will be presentconst allNFTs = await contract.erc721.getAll();
// if your contract extends a particular contract extension, the corresponding function will be availableconst tx = await contract.erc721.mint({
name: "Cool NFT",
image: readFileSync("some_image.png"),
});