setPrimarySaleRecipient

Prepares a transaction to call the "setPrimarySaleRecipient" function on the contract.

Example

import { setPrimarySaleRecipient } from "thirdweb/extensions/common";
const transaction = setPrimarySaleRecipient({
contract,
saleRecipient: ...,
overrides: {
...
}
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.