Class ContractPrimarySale

Handle primary sales recipients

Remarks

Configure primary sale recipients for an entire contract.

Example

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

Hierarchy

  • ContractPrimarySale

Implements

  • DetectableFeature

Constructors

Properties

contractWrapper: ContractWrapper<IPrimarySale>
featureName: "PrimarySale" = FEATURE_PRIMARY_SALE.name
setRecipient: {
    prepare: ((...args) => Promise<Transaction<Omit<TransactionResultWithMetadata<unknown>, "data">>>);
    (...args): Promise<TResult>;
} = ...

Type declaration

    • (...args): Promise<TResult>
    • Set the primary sale recipient

      Parameters

      • Rest ...args: [recipient: string]

      Returns Promise<TResult>

      Example

      await contract.sales.setRecipient(recipientWalletAddress);
      

      Twfeature

      PrimarySale

  • prepare: ((...args) => Promise<Transaction<Omit<TransactionResultWithMetadata<unknown>, "data">>>)
      • (...args): Promise<Transaction<Omit<TransactionResultWithMetadata<unknown>, "data">>>
      • Parameters

        • Rest ...args: [recipient: string]

        Returns Promise<Transaction<Omit<TransactionResultWithMetadata<unknown>, "data">>>

Methods

Generated using TypeDoc