useTypedApi()
function useTypedApi<TChainId>(options?): TypedApi<ChainDescriptorOf<TChainId>>;
Defined in: packages/react/src/hooks/use-typed-api.ts:25
Hook for getting Polkadot-API typed API.
Type Parameters
| Type Parameter |
|---|
TChainId extends string | number | undefined |
Parameters
| Parameter | Type | Description |
|---|---|---|
options? | Partial<ChainOptions<TChainId>> | Additional options |
Returns
TypedApi<ChainDescriptorOf<TChainId>>
Polkadot-API typed API