Skip to main content

discover_mpp_config

Function discover_mpp_config 

Source
pub fn discover_mpp_config(opts: DiscoverOptions) -> Option<MppKeyConfig>
Expand description

Discover MPP key configuration filtered by chain ID and/or currency.

Filters keys.toml entries by chain_id and currency simultaneously, then applies the standard priority rule (passkey > inline key > first) within the filtered set. This ensures the selected key matches both the target chain and the required currency.