Skip to main content

IPrimarySale

Thirdweb's Primary is a contract extension to be used with any base contract. It exposes functions for setting and reading the recipient of primary sales, and lets the inheriting contract perform conditional logic that uses information about primary sales, if desired.

Methods

primarySaleRecipient

function primarySaleRecipient() external view returns (address)

The adress that receives all primary sales value.

Returns

NameTypeDescription
_0addressundefined

setPrimarySaleRecipient

function setPrimarySaleRecipient(address _saleRecipient) external nonpayable

Lets a module admin set the default recipient of all primary sales.

Parameters

NameTypeDescription
_saleRecipientaddressundefined

Events

PrimarySaleRecipientUpdated

event PrimarySaleRecipientUpdated(address indexed recipient)

Emitted when a new sale recipient is set.

Parameters

NameTypeDescription
recipient indexedaddressundefined