@dynamic-labs/solana-extension integrates your application with the @solana/web3.js library, providing a Connection and Signer to interact with the Solana blockchain.
Installation
To install the Solana extension, run the following command:Setup
Incorporate the Solana extension into your client using theextend method to add getSigner and getConnection methods:
dynamicClient.ts
Please refer to the Polyfills section for information on how to set up necessary polyfills.
Usage
After setup, you can interact with the Solana blockchain. Below is an example of a component that sends 1 SOL to a specified wallet address:Send1SolButton.tsx