deploySplitContract

Deploys a thirdweb Split contract On chains where the thirdweb infrastructure contracts are not deployed, this function will deploy them as well.

Example

import { deploySplitContract } from "thirdweb/deploys";
const contractAddress = await deploySplitContract({
chain,
client,
account,
params: {
name: "Split contract",
payees: ["0x...123", "0x...456"],
shares: [5100, 4900], // See type `SplitContractParams` for more context
});

Parameters

Returns

The deployed contract address.