Skip to main content

useTypedApi

Callable

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

  • Composable for getting Polkadot-API typed API.


    Type parameters

    • TChainId: any

    Parameters

    • optionaloptions: ChainComposableOptions<TChainId>

      Additional options

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

    Polkadot-API typed API