Skip to Content
Anuma SDKReactHooksuseWalletBinding

useWalletBinding

useWalletBinding(options: object): UseWalletBindingResult

Defined in: src/react/useWalletBinding.ts:102 

React hook for managing ZETA wallet bindings and reading staked-based Pro status. Provides methods to list bound wallets, request a binding nonce, bind a wallet with a signed proof, and unbind a wallet.

Parameters

ParameterTypeDescription

options

object

‐

options.autoFetch?

boolean

Fetch the bound wallets on mount and when the session key changes (default: true).

options.baseUrl?

string

Optional base URL for the API requests.

options.getToken?

() => Promise<string | null>

Custom function to get auth token for API calls

options.onError?

(error: Error) => void

Optional callback for error handling

options.sessionKey?

string | null

A stable account or session ID, or null when the user is signed out.

Returns

UseWalletBindingResult

Last updated on