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

# Adding Custom EVM Networks

> Configure custom EVM networks for the Flutter SDK at initialization.

You can add any EVM network that Dynamic does not support out of the box by passing a list of `GenericNetwork` objects to the `evmNetworks` property in `ClientProps` when initializing the SDK.

<Warning>
  The `evmNetworks` list replaces the EVM networks enabled in your Dynamic dashboard for this session. Pass the full list of networks you want the SDK to use.
</Warning>

## Example

The following example sets Ethereum Mainnet and Polygon as supported networks.

```dart theme={"system"}
import 'package:dynamic_sdk/dynamic_sdk.dart';

final evmNetworks = [
  const GenericNetwork(
    blockExplorerUrls: ['https://etherscan.io'],
    chainId: 1,
    iconUrls: ['https://app.dynamic.xyz/assets/networks/eth.svg'],
    name: 'Ethereum Mainnet',
    nativeCurrency: NativeCurrency(
      decimals: 18,
      name: 'Ether',
      symbol: 'ETH',
    ),
    networkId: 1,
    rpcUrls: ['https://mainnet.infura.io/v3/YOUR_INFURA_KEY'],
    vanityName: 'ETH Mainnet',
  ),
  const GenericNetwork(
    blockExplorerUrls: ['https://polygonscan.com'],
    chainId: 137,
    iconUrls: ['https://app.dynamic.xyz/assets/networks/polygon.svg'],
    name: 'Matic Mainnet',
    nativeCurrency: NativeCurrency(
      decimals: 18,
      name: 'MATIC',
      symbol: 'MATIC',
    ),
    networkId: 137,
    rpcUrls: ['https://polygon-rpc.com'],
    vanityName: 'Polygon',
  ),
];

DynamicSDK.init(
  props: ClientProps(
    environmentId: 'REPLACE_WITH_YOUR_ENV_ID',
    appOrigin: 'https://your-app.com',
    evmNetworks: evmNetworks,
  ),
);
```

<Note>
  In the `GenericNetwork` constructor, `chainId` and `networkId` accept either an `int` or a `String`. `decimals` is a `double` in the Flutter SDK, but you can pass an integer literal such as `18`. `chainName`, `lcdUrl`, `nameService`, `privateCustomerRpcUrls`, and `vanityName` are optional.
</Note>

## Type Reference

### GenericNetwork

| Attribute              | Type              | Required/Optional |
| ---------------------- | ----------------- | ----------------- |
| blockExplorerUrls      | `List<String>`    | Required          |
| chainId                | `int` or `String` | Required          |
| iconUrls               | `List<String>`    | Required          |
| name                   | `String`          | Required          |
| nativeCurrency         | `NativeCurrency`  | Required          |
| networkId              | `int` or `String` | Required          |
| privateCustomerRpcUrls | `List<String>?`   | Optional          |
| rpcUrls                | `List<String>`    | Required          |
| vanityName             | `String?`         | Optional          |

### NativeCurrency

| Attribute | Type      | Required/Optional |
| --------- | --------- | ----------------- |
| decimals  | `double`  | Required          |
| denom     | `String?` | Optional          |
| name      | `String`  | Required          |
| symbol    | `String`  | Required          |

## Next Steps

* [Network Management](/docs/flutter/wallets/general/network-management) - Switch networks and read the current network
* [Send ETH](/docs/flutter/wallets/evm/send-eth) - Send transactions on EVM networks
