Docs

ContractPlatformFee

Handle platform fees and recipients

Configure platform fees for a contract, which can be applied on certain paid transactions

Example

const contract = await sdk.getContract("{{contract_address}}");
const feeInfo = await contract.platformFees.get();
await contract.platformFees.set({
platform_fee_basis_points: 100, // 1% fee
platform_fee_recipient: "0x...", // the fee recipient
});

Methods

Properties