usePlatformFees

Get the platform fee recipient and basis points

function usePlatformFees(
  contract: RequiredParam<ValidContractInstance>,
): UseQueryResult<{}, unknown>;

Parameters


Returns

an object containing the platform fee basis points and the fee recipient address

type ReturnType = UseQueryResult<{}, unknown>;

Example

const {
  data: platformFees,
  isLoading,
  error,
} = usePlatformFees(contract);