WalletCoreIdMapper

Maps canonical network IDs to WalletCore coin types.

This mapping is KMP-only and keeps the network registry JSON clean (no WalletCore-specific fields in the shared contract).

For EVM chains: uses WalletCore coin identifiers, which may differ from EVM chain IDs. For UTXO chains: Each chain has its own coin type.

Properties

Link copied to clipboard
const val ARBITRUM: WalletCoreCoinType = 10042221

WalletCore coin type for Arbitrum (10042221).

Link copied to clipboard
const val BASE: WalletCoreCoinType = 8453

WalletCore coin type for Base (8453).

Link copied to clipboard

WalletCore coin type for Bitcoin (SLIP-44: 0)

Link copied to clipboard
const val BSC: WalletCoreCoinType = 20000714

WalletCore coin type for BNB Smart Chain (20000714).

Link copied to clipboard

WalletCore coin type for Ethereum (SLIP-44: 60) Used for Ethereum mainnet and testnets.

Link copied to clipboard
const val OPTIMISM: WalletCoreCoinType = 10000070

WalletCore coin type for Optimism (10000070).

Functions

Link copied to clipboard
fun isEvmNetwork(networkId: String): Boolean

Check if a network uses the EVM signing path in WalletCore.

Link copied to clipboard

Extension function to get WalletCore coin type from a Network.

Map a canonical network ID to its WalletCore coin type.