> ## Documentation Index
> Fetch the complete documentation index at: https://docs.polygon.technology/llms.txt
> Use this file to discover all available pages before exploring further.

# Swift networks

> Look up the networks supported by the OMS Wallet Swift SDK.

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.

```swift theme={null}
let amoy = Network.amoy
let byChainId = Network.findById(80002)
let byName = Network.findByName("amoy")

print(amoy.id)                 // 80002
print(amoy.name)               // "amoy"
print(amoy.nativeTokenSymbol)  // "POL"
print(amoy.explorerURL)
```

`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

| Value | Name | Chain ID |
| - | - | -: |
| `.mainnet` | `mainnet` | 1 |
| `.sepolia` | `sepolia` | 11155111 |
| `.polygon` | `polygon` | 137 |
| `.amoy` | `amoy` | 80002 |
| `.arbitrum` | `arbitrum` | 42161 |
| `.arbitrumSepolia` | `arbitrum-sepolia` | 421614 |
| `.optimism` | `optimism` | 10 |
| `.optimismSepolia` | `optimism-sepolia` | 11155420 |
| `.base` | `base` | 8453 |
| `.baseSepolia` | `base-sepolia` | 84532 |
| `.bsc` | `bsc` | 56 |
| `.bscTestnet` | `bsc-testnet` | 97 |
| `.arbitrumNova` | `arbitrum-nova` | 42170 |
| `.avalanche` | `avalanche` | 43114 |
| `.avalancheTestnet` | `avalanche-testnet` | 43113 |
| `.katana` | `katana` | 747474 |

`Network.supportedNetworks` returns these values.

## Solana networks

Solana methods accept `.mainnet` or `.devnet`:

```swift theme={null}
let mainnet: SolanaNetwork = .mainnet // "solana:mainnet"
let devnet: SolanaNetwork = .devnet   // "solana: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`:

```swift theme={null}
let mainnet: TronNetwork = .mainnet // "tron:mainnet"
let nile: TronNetwork = .nile       // "tron:nile"
```

`TronNetwork.allCases` enumerates both values. Use Nile for transactions that should not spend real funds.

## Public API reference

Use the [Swift API reference](https://docs.polygon.technology/wallets/sdk/swift/api-reference.md) for exhaustive declarations, model fields, error codes, and operation names.
