Skip to main content
EVM wallet and indexer methods accept the fixed Network registry. Solana-specific methods use the separate SolanaNetwork enum, and Tron-specific methods use TronNetwork. The Swift SDK does not accept caller-defined network objects.

Look up a network

Use enum values in application code and lookup helpers when converting stored chain IDs or names.
findById(_:) and findByName(_:) return nil outside the registry. findByName(_:) matches the name values in the table below, ignoring case and surrounding whitespace.

Supported registry values

Network.supportedNetworks returns these values.

Solana networks

Solana methods accept .mainnet or .devnet:
SolanaNetwork.allCases enumerates both values. EVM Network lookup helpers do not look up Solana clusters. SolanaNetwork.mainnet is distinct from Network.mainnet, which is Ethereum mainnet.

Tron networks

Tron methods accept .mainnet or .nile:
TronNetwork.allCases enumerates both values. Use Nile for transactions that should not spend real funds.

Public API reference

Use the Swift API reference for exhaustive declarations, model fields, error codes, and operation names.