SdkLike.reopenFederation
ts
reopenFederation(id: FederationId): Promise<FederationLike>Starts a stored federation again, without an invite code.
Parameters
| Name | Type | Description |
|---|---|---|
id | FederationId | The stored federation to start again. |
Returns. FederationLike. The live handle. Old handles stay closed.
Throws. InvalidInput, UnsupportedFederation, FederationUnreachable, Timeout, Storage, FederationClosed. InvalidInput means no such federation exists, or it is in the Forgetting state.
Example
example.ts
ts
import type { FederationId, SdkLike } from '@fedimint/react-native'
declare const sdk: SdkLike
declare const id: FederationId
const fed = await sdk.reopenFederation(id)
console.log(fed.name())Used in. Quickstart, step 02, Join, step 03, Errors, step 01