the address of the Token Drop contract, found in your thirdweb dashboard
import { useContract } from '@thirdweb-dev/react'
export default function Component() {
  const { contract } = useContract("<YOUR-CONTRACT-ADDRESS>", "token-drop")
  // Now you can use the token drop contract in the rest of the component
  // For example, this function will get the connected wallets token balance
  async function balance() {
    const balance = await contract.balance()
    return balance
  }
  ...
}
This hook is deprecated and will be removed in a future major version. You should use useContract instead.
- const token = useTokenDrop("0x1234...");
+ const token = useContract("0x1234...", "token-drop").contract;
Generated using TypeDoc
Hook for getting an instance of a
Token Dropcontract.