# Type Alias RouterOptions

RouterOptions: {
getFallbackRelays: () => string[];
getIndexerRelays?: () => string[];
getLimit?: () => number;
getPubkeyRelays?: (pubkey: string, mode?: RelayMode ) => string[];
getRelayQuality?: (url: string) => number;
getSearchRelays?: () => string[];
getUserPubkey?: () => string | null;
}

#### Type declaration

- ##### getFallbackRelays: () => string[]

  Retrieves fallback relays, for use when no other relays can be selected.

- ##### `Optional` getIndexerRelays?: () => string[]

  Retrieves relays that index profiles and relay selections.

- ##### `Optional` getLimit?: () => number

  Retrieves the limit setting, which is the maximum number of relays that should be returned from getUrls and getSelections.

- ##### `Optional` getPubkeyRelays?: (pubkey: string, mode?: RelayMode ) => string[]

  Retrieves relays for the specified public key and mode.

- ##### `Optional` getRelayQuality?: (url: string) => number

  Retrieves the quality of the specified relay.

- ##### `Optional` getSearchRelays?: () => string[]

  Retrieves relays likely to support NIP-50 search.

- ##### `Optional` getUserPubkey?: () => string | null

  Retrieves the user's public key.

- Defined in packages/app/src/router.ts:53