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); Copy
const contract = await sdk.getContract("{{contract_address}}");const salesRecipient = await contract.sales.getRecipient();await contract.sales.setRecipient(recipientWalletAddress);
Private
Set the primary sale recipient
Rest
await contract.sales.setRecipient(recipientWalletAddress); Copy
await contract.sales.setRecipient(recipientWalletAddress);
PrimarySale
Get the primary sale recipient
the wallet address.
const salesRecipient = await contract.sales.getRecipient(); Copy
const salesRecipient = await contract.sales.getRecipient();
Generated using TypeDoc
Handle primary sales recipients
Remarks
Configure primary sale recipients for an entire contract.
Example