import { getActiveNetworkData } from '@dynamic-labs-sdk/client';
import { getSolanaConnection } from '@dynamic-labs-sdk/solana';
const someAction = async (walletAccount) => {
// you can use your custom NetworkData object or get the active network data from a wallet account
// with the getActiveNetworkData function
const { networkData } = await getActiveNetworkData({ walletAccount });
const connection = getSolanaConnection({ networkData });
// Connection is now ready to use
};