GenericNetwork objects to the evmNetworks property in ClientProps when initializing the SDK.
Example
The following example sets Ethereum Mainnet and Polygon as supported networks.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.Type Reference
GenericNetwork
NativeCurrency
Next Steps
- Network Management - Switch networks and read the current network
- Send ETH - Send transactions on EVM networks