Private
contractSet the platform fee recipient and basis points
Rest
...args: [platformFeeInfo: { await contract.platformFees.set({
platform_fee_basis_points: 100, // 1% fee
platform_fee_recipient: "0x..." // the fee recipient
})
PlatformFee
Rest
...args: [platformFeeInfo: { Get the platform fee recipient and basis points
const feeInfo = await contract.platformFees.get();
console.log(feeInfo.platform_fee_recipient);
console.log(feeInfo.platform_fee_basis_points);
PlatformFee
Generated using TypeDoc
Handle platform fees and recipients
Remarks
Configure platform fees for a contract, which can be applied on certain paid transactions
Example