Docs

getContract

Creates a Thirdweb contract by combining the Thirdweb client and contract options.

Example

import { createThirdwebClient, getContract } from "thirdweb";
const client = createThirdwebClient({ clientId: "..." });
const contract = getContract({
client,
address: "...",
// optional ABI
abi: [...],
});

Parameters

Returns

The Thirdweb contract.