Skip to main content

useClient

Callable

  • useClient(options?: ChainComposableOptions): DeepReadonly<MutableAsyncState<any, unknown, undefined>> & { refresh: () => void } & PromiseLike<AsyncState<any, unknown, any>>

  • Composable for getting Polkadot-API client instance.


    Parameters

    • optionaloptions: ChainComposableOptions

      Additional options

    Returns DeepReadonly<MutableAsyncState<any, unknown, undefined>> & { refresh: () => void } & PromiseLike<AsyncState<any, unknown, any>>

    Polkadot-API client