Skip to main content

ContractPrimarySale class

Handle primary sales recipients

Example

const contract = await sdk.getContract("{{contract_address}}");
const salesRecipient = await contract.sales.getRecipient();
await contract.roles.setRecipient(recipientWalletAddress);

Constructors

ConstructorModifiersDescription
(constructor)(contractWrapper)Constructs a new instance of the ContractPrimarySale class

Properties

PropertyModifiersTypeDescription
featureName"PrimarySale"

Methods

MethodModifiersDescription
getRecipient()Get the primary sale recipient.
setRecipient(recipient)Set the primary sale recipient

Signature:

export declare class ContractPrimarySale<TContract extends IPrimarySale> implements DetectableFeature

Implements: DetectableFeature

Remarks

Configure primary sale recipients for an entire contract.