setPrimarySaleRecipient

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

Example

import { sendTransaction } from "thirdweb";
import { setPrimarySaleRecipient } from "thirdweb/extensions/common";
const transaction = setPrimarySaleRecipient({
contract,
saleRecipient: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
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.