Skip to content

API reference > @kontsedal/olas-svelte > getRoot

getRoot() function ​

The root's api, from the nearest setRoot. Call during a component's initialization.

Signature:

typescript
export declare function getRoot<Api = RegisteredApi>(): Api;

Returns:

Api

Released under the MIT License.