Skip to main content
The useClient hook provides direct access to the Para client instance, allowing you to call any method available on the Para SDK.

Import

Usage

Parameters

This hook does not accept any parameters.

Return Type

Available Methods

When you have the Para client instance, you can access all SDK methods including:
  • getDisplayAddress() - Format wallet addresses
  • isSessionActive() - Check session status
  • exportSession() - Export session for server-side use
  • findWallet() - Find a specific wallet
  • getUserId() - Get the current user ID
  • And many more…

Example: Advanced Usage

Notes

  • The client is undefined until the ParaProvider is fully initialized
  • Always check if the client exists before using it
  • The client instance is the same one passed to the ParaProvider