PlatformFee
Functionality available for contracts that
inherit the PlatformFee
contract.
get
Get the platform fee recipient and basis points.
const feeInfo = await contract.platformFee.get();
Configuration
Return Value
Returns an object containing the platform fee recipient and basis points.
{
platform_fee_basis_points: number;
platform_fee_recipient: string;
}
set
Set the platform fee recipient and basis points.
const txResult = await contract.platformFees.set({
platform_fee_basis_points: 100,
platform_fee_recipient: "0x123",
});