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. Initialize the SDK from yourActivity onCreate.
In the
GenericNetwork constructor, chainId and networkId accept an Int, Long, or String. 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