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
Constructor | Modifiers | Description |
---|---|---|
(constructor)(contractWrapper) | Constructs a new instance of the ContractPrimarySale class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
featureName | "PrimarySale" |
Methods
Method | Modifiers | Description |
---|---|---|
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.