Overview
The Solana connection allows you to interact with the Solana blockchain, query data, and prepare transactions.Prerequisites
- Dynamic SDK initialized (see Quickstart)
- User authenticated (see Authentication)
- Solana wallets enabled in your Dynamic dashboard
Create Connection
Get Latest Blockhash
Required for building transactions:Query Account Balance
Get Solana Wallets
Solana Networks
Access configured Solana networks:Connection Methods
| Method | Description |
|---|---|
createConnection() | Create a Solana connection instance |
getLatestBlockhash() | Get the latest blockhash for transactions |
getBalance(publicKey:) | Get account balance in lamports |
getAccountInfo(publicKey:) | Get detailed account information |
Dependencies
To build Solana transactions, add the SolanaWeb3 package:Next Steps
- Send Solana Transactions - Transfer SOL
- Sign Solana Messages - Sign messages
- Token Balances - Get SOL balance