Use Solana connection
In this example, we will use the Helius SDK to access the Solana connection object.
Access the Solana connection object
// You can access the Solana connection objectconst hash = await client.connection.getGenesisHash()
// Will print EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG on devnetconsole.log('Genesis hash:', hash)
// Get the version of the nodeconst version = await client.connection.getVersion()console.log('Version:', version)