usePlatformFees() function
This feature is currently in beta and may change based on feedback that we receive.
Use this to get the platform fees settings of your
Example
const { data: platformFees, isLoading, error } = usePlatformFees(SmartContract);
Signature:
export declare function usePlatformFees(
contract: RequiredParam<SmartContract | ValidContractInstance>,
): import("@tanstack/react-query").UseQueryResult<
{
platform_fee_basis_points: number;
platform_fee_recipient: string;
},
unknown
>;
Parameters
Parameter | Type | Description |
---|---|---|
contract | RequiredParam<SmartContract | ValidContractInstance> | an instance of a |
Returns:
import("@tanstack/react-query").UseQueryResult<{ platform_fee_basis_points: number; platform_fee_recipient: string; }, unknown>
an object containing the platform fee basis points and the fee recipient address