Prepares a transaction to call the "setPlatformFeeInfo" function on the contract.
import { sendTransaction } from "thirdweb";import { setPlatformFeeInfo } from "thirdweb/extensions/common"; const transaction = setPlatformFeeInfo({ contract, platformFeeRecipient: ..., platformFeeBps: ..., overrides: { ... }}); // Send the transactionawait sendTransaction({ transaction, account });
function setPlatformFeeInfo( options: BaseTransactionOptions< | SetPlatformFeeInfoParams | { asyncParams: () => Promise<SetPlatformFeeInfoParams> } >,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for the "setPlatformFeeInfo" function.
let options: BaseTransactionOptions< | SetPlatformFeeInfoParams | { asyncParams: () => Promise<SetPlatformFeeInfoParams> }>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A prepared transaction object.