Skip to main content

ContractDeployer.deploySplit() method

Deploys a new Split contract

Example

const contractAddress = await sdk.deployer.deploySplit({
name: "My Split",
primary_sale_recipient: "your-address",
recipients: [
{
address: "your-address",
sharesBps: 80 * 100, // 80%
},
{
address: "another-address",
sharesBps: 20 * 100, // 20%
},
],
});

Signature:

deploySplit(metadata: SplitContractDeployMetadata): Promise<string>;

Parameters

ParameterTypeDescription
metadataSplitContractDeployMetadatathe contract metadata

Returns:

Promise<string>

the address of the deployed contract

Remarks

Deploys a Split contract and returns the address of the deployed contract