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 addressesisSessionActive()- Check session statusexportSession()- Export session for server-side usefindWallet()- Find a specific walletgetUserId()- Get the current user ID- And many more…
Example: Advanced Usage
Notes
- The client is undefined until the
ParaProvideris fully initialized - Always check if the client exists before using it
- The client instance is the same one passed to the
ParaProvider