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
},
});
function deploySplitContract(options: {
account: Account;
chain: Readonly<ChainOptions & { rpc: string }>;
client: ThirdwebClient;
}): Promise<string>;

Parameters

The deployment options.

Type

let options: {
account: Account;
chain: Readonly<ChainOptions & { rpc: string }>;
client: ThirdwebClient;
};

Returns

let returnType: Promise<string>;

The deployed contract address.