Skip to main content

ContractPlatformFee.set() method

Set the platform fee recipient and basis points

Signature:

set(platformFeeInfo: z.input<typeof CommonPlatformFeeSchema>): Promise<TransactionResult>;

Parameters

ParameterTypeDescription
platformFeeInfoz.input<typeof CommonPlatformFeeSchema>

the platform fee information

await contract.platformFee.set({
platform_fee_basis_points: 100, // 1% fee
platform_fee_recipient: "0x...", // the fee recipient
});

|

Returns:

Promise<TransactionResult>