SdkLike.federations
ts
federations(): Array<FederationLike>Lists the open federations. Synchronous.
Parameters. None.
Returns. Array<FederationLike>. Every open federation. The order is not specified.
Throws. None.
Example
example.ts
ts
import type { SdkLike } from '@fedimint/react-native'
declare const sdk: SdkLike
for (const fed of sdk.federations()) {
console.log(fed.id())
}Used in. Restore, step 04, Join, step 03, Session, step 02