@dynamic-labs/solana-extension
v3.9.5
Published
## Installation
Downloads
1,949
Readme
solana-extension
Installation
npm install @dynamic-labs/solana-extension
Usage
import { SolanaExtension } from '@dynamic-labs/solana-extension'
import { createClient } from '@dynamic-labs/client'
import { Connection } from '@solana/web3.js'
const dynamicClient = createClient({...}).extend(SolanaExtension())
const connection: Connection = dynamicClient.solana.getConnection();
const signer = dynamicClient.solana.getSigner({
wallet: dynamicClient.wallets.primary,
});
const signedMessage = await signer.signMessage(
new TextEncoder().encode('hello')
)