Skip to main content

usePrimarySaleRecipient() function

This feature is currently in beta and may change based on feedback that we receive.

Example

const {
data: recipient,
isLoading,
error,
} = usePrimarySalesRecipient(SmartContract);

Use this to get the primary sales recipient of your

Signature:

export declare function usePrimarySaleRecipient(
contract: RequiredParam<SmartContract | ValidContractInstance>,
): import("@tanstack/react-query").UseQueryResult<string, unknown>;

Parameters

ParameterTypeDescription
contractRequiredParam<SmartContract | ValidContractInstance>an instance of a

Returns:

import("@tanstack/react-query").UseQueryResult<string, unknown>

the wallet address of the primary sales recipient