import { createWalletClient, http, parseEther } from 'viem';
import { privateKeyToAccount } from 'viem/accounts';
import { sei } from 'viem/chains';
const account = privateKeyToAccount('0xYourPrivateKey');
const client = createWalletClient({ account, chain: sei, transport: http() });
// Sends a type 2 transaction — correct default for Sei
const hash = await client.sendTransaction({
to: '0xRecipient',
value: parseEther('1'),
});