Type alias SuiClientProviderProps<T>
SuiClientProviderProps<T>: { children: React.ReactNode; createClient?: ((name,
config) => SuiClient); networks?: T; onNetworkChange?: ((network) => void); } & ({ defaultNetwork?: keyof T & string; network?: never; } | { defaultNetwork?: never; network?: keyof T & string; }) Type declaration
children: React.ReactNode
Optional
createClient?: ((name, config) => SuiClient)
- (name, config): SuiClient
Parameters
- name: keyof T
- config: T[keyof T]
Optional
networks?: T
Optional
onNetworkChange?: ((network) => void)
- (network): void
Parameters
- network: keyof T & string
Returns void