ContractPrimarySale
Handle primary sales recipients
Configure primary sale recipients for an entire contract.
const contract = await sdk.getContract("{{contract_address}}");const salesRecipient = await contract.sales.getRecipient();await contract.sales.setRecipient(recipientWalletAddress);
class ContractPrimarySale implements DetectableFeature {}
function constructor( contractWrapper: ContractWrapper<IPrimarySale>,
function setRecipient(recipient: string): Promise<TResult>;
Preparable
You can also prepare the transaction without executing it by calling setRecipient.prepare()
with same arguments. Learn more