useUpdatePlatformFees
Hook for updating platform fees on a smart contract.
Available to use on smart contracts that implement the PlatformFee
interface.
A mutation object to update the platform fees settings
options
The mutation function takes an object with below properties:
platform_fee_basis_points
The platform_fee_basis_points
property is a number
between 0
- 10000
that defines the fee rate.
This number is in percentage points. i.e. 100
is a 1% fee and 10000
is a 100% fee.
fee_recipient
The fee_recipient
property is the address of the wallet that will receive the fees.
Use the useAddress
hook to get the current wallet address.