Skip to main content

Configuring Primary Sale and Royalties

Users can configure both the primary sale recipient as well as royalty percentage and recipient. Users can choose to use a single wallet address or set up distribution splits via the use of a Split contract.

// set primary sale recipient
await contract.sales.setRecipient(recipientWalletAddress);

// set collection level royalties
await contract.roles.setDefaultRoyaltyInfo({
seller_fee_basis_points: 100, // 1% royalty fee
fee_recipient: "0x...", // the fee recipient
});

// set token level royalties
await contract.roles.setTokenRoyaltyInfo(tokenId, {
seller_fee_basis_points: 100, // 1% royalty fee
fee_recipient: "0x...", // the fee recipient
});