GenericNetwork objects to the solNetworks, bitcoinNetworks, and tonNetworks properties in ClientProps when initializing the SDK.
Example
The following example sets Solana Mainnet and Devnet, Bitcoin Mainnet, and TON Mainnet 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 9. chainName, lcdUrl, nameService, privateCustomerRpcUrls, and vanityName are optional.Type Reference
GenericNetwork
NativeCurrency
Next Steps
- Network Management - Switch networks and read the current network
- Solana Connection - Interact with the Solana blockchain
- Bitcoin Overview - Work with Bitcoin wallets
- TON Overview - Work with TON wallets