Package-level declarations

Types

Link copied to clipboard
@Serializable
data class EvmFeatures(val eip1559: Boolean = false, val erc20: Boolean = false, val erc721: Boolean = false, val erc1155: Boolean = false, val opStackL1Fee: Boolean = false)

Feature flags for EVM networks. All fields are optional with sensible defaults.

Link copied to clipboard
@Serializable
data class Explorer(val tx: String, val address: String)

Block explorer URL templates for transactions and addresses. Use {txid} and {address} as placeholders.

Link copied to clipboard
@Serializable
data class NativeCurrency(val name: String, val symbol: String, val decimals: Int)

Native currency of a network (e.g., ETH for Ethereum, BTC for Bitcoin).

Link copied to clipboard
@Serializable
data class Network(val id: String, val name: String, val type: NetworkType, val chainId: BigInteger? = null, val rpc: RpcConfig? = null, val evmFeatures: EvmFeatures? = null, val addressFormats: List<String>? = null, val bech32Prefix: String? = null, val utxoFeatures: UtxoFeatures? = null, val nativeCurrency: NativeCurrency, val explorer: Explorer)

Network definition for our wallet.

Link copied to clipboard
@Serializable
enum NetworkType : Enum<NetworkType>

Type of blockchain network. Drives transaction engine selection, fee model, validation rules, and signing flow.

Link copied to clipboard
@Serializable
data class RpcConfig(val defaultUrl: String)

RPC configuration for EVM networks.

Link copied to clipboard
@Serializable
data class UtxoFeatures(val segwit: Boolean = false, val replaceByFee: Boolean = false, val taproot: Boolean = false)

Feature flags for UTXO networks. All fields are optional with sensible defaults.

Link copied to clipboard

Type alias for WalletCore coin identifiers. Maps to TWCoinType values in WalletCore.

Link copied to clipboard

Maps canonical network IDs to WalletCore coin types.