import { authenticatedSvmClient } from './client';
import { Transaction, SystemProgram, LAMPORTS_PER_SOL } from '@solana/web3.js';
const svmClient = await authenticatedSvmClient();
const transaction = new Transaction().add(
SystemProgram.transfer({
fromPubkey: new PublicKey('YourSolanaWalletAddress'),
toPubkey: new PublicKey('11111111111111111111111111111112'),
lamports: LAMPORTS_PER_SOL * 0.001,
})
);
const signedTx = await svmClient.signTransaction({
senderAddress: 'YourSolanaWalletAddress',
transaction: transaction,
});
console.log('Signed transaction:', signedTx);