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
...
function setPrimarySaleRecipient(
| { asyncParams: () => Promise<SetPrimarySaleRecipientParams> }
>,

Parameters

The options for the "setPrimarySaleRecipient" function.

Type

| { asyncParams: () => Promise<SetPrimarySaleRecipientParams> }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.