import { createThirdwebClient, getContract } from "thirdweb";
import { resolveAbiFromContractApi } from "thirdweb/contract";
import { ethereum } from "thirdweb/chains";
const client = createThirdwebClient({ clientId: "..." });
const myContract = getContract({
client,
address: "...",
chain: ethereum,
});
const abi = await resolveAbiFromContractApi(myContract);