convertCoinTypeToChainId
Converts a coinType into a chain ID. The conversion follows ENSIP-11.
Note
For mainnet, the conversion expects coinType == 60
. This comes from ENSIP-9.
Usage
ts
import { convertCoinTypeToChainId } from "@alchemy/aa-core";
const result = convertCoinTypeToChainId(60);
// 1
Returns
number
The chain ID
Parameters
coinType: number
The coinType to convert to a chain ID