Skip to Content
Anuma SDKReactInternalType AliasesUseWalletBindingOptions

UseWalletBindingOptions

UseWalletBindingOptions = object

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

Properties

autoFetch?

optional autoFetch: boolean

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

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


baseUrl?

optional baseUrl: string

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

Optional base URL for the API requests.


getToken()?

optional getToken: () => Promise<string | null>

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

Custom function to get auth token for API calls

Returns

Promise<string | null>


onError()?

optional onError: (error: Error) => void

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

Optional callback for error handling

Parameters

ParameterType

error

Error

Returns

void


sessionKey?

optional sessionKey: string | null

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

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

Last updated on