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 an int or a string. decimals is a double. chainName, lcdUrl, nameService, privateCustomerRpcUrls, and vanityName are optional.Type Reference
GenericNetwork
NativeCurrency
Next Steps
- Network Management - Switch networks and read the current network
- Send Solana Transactions - Interact with the Solana blockchain