Function: getChainSelectorByName()
getChainSelectorByName(
name
):number
Returns the chain selector value for a given chain name.
Parameters
• name: string
The name of the chain to look up.
Returns
number
The chain selector associated with the given chain name.
Throws
Throws an error if the provided chain name is not supported.
Example
const selector = getChainSelectorByName("ethereum");
console.log(selector); // Outputs: 1