API Reference

While the Refract SDK is designed to be “drop-in” by seamlessly working with standard libraries like wagmi and dapp-kit, it also provides a set of powerful, Refract-specific APIs to unlock the full potential of our mobile-first social features.

This section provides a detailed reference for all the components and hooks that are unique to the Refract SDK.

Components

While most of the SDK works in the background, the primary component you will interact with during setup is:

  • <SecureSignProvider /> - The main provider component to wrap your application.

Hooks

These React hooks give you access to the core features of the Refract Network.

  • useRefractProfile() - Access the user’s rich social profile data.
  • useGenerateReferralLink() - Create shareable, incentivized referral links.
  • useRefractUI() - ::TODO::
  • useQuestState() - ::TODO::