ContractPlatformFee.set() method
Set the platform fee recipient and basis points
Signature:
set(platformFeeInfo: z.input<typeof CommonPlatformFeeSchema>): Promise<TransactionResult>;
Parameters
Parameter | Type | Description |
---|---|---|
platformFeeInfo | z.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>