usePrimarySaleRecipient
Get the primary sale recipient
function usePrimarySaleRecipient(
contract: RequiredParam<ValidContractInstance>,
): UseQueryResult<string, unknown>;
Parameters
Returns
the wallet address of the primary sales recipient
type ReturnType = UseQueryResult<string, unknown>;
Example
const {
data: primarySaleRecipient,
isLoading,
error,
} = usePrimarySalesRecipient(contract);
Use this to get the primary sales recipient of your SmartContract