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: WalletCore uses Ethereum coin type (60), chainId differentiates networks. For UTXO chains: Each chain has its own coin type.

Properties

Link copied to clipboard
const val BASE: WalletCoreCoinType = 8453

WalletCore coin type for Base (8453) Note: WalletCore only supports mainnet CoinTypes, not testnets. Testnets (like Base Sepolia) fall back to Ethereum CoinType.

Link copied to clipboard

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

Link copied to clipboard

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

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.